← 返回 Skills 市场
kevin0818-lxd

Essay Humanizer

作者 kevin0818-lxd · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
178
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install essay-humanizer
功能描述
Rewrite AI-drafted essays into more human-like academic prose. Fine-tuned LoRA over Qwen3-8B guided by 24 Wikipedia-style AI-writing pattern weights plus MDD...
使用说明 (SKILL.md)

Essay Humanizer (corpus-informed)

Rewrites AI-generated argumentative/academic essays toward human baseline style informed by CAWSE (M/D bands) LOCNESS, and contrast with DeepSeek-generated counterparts. Ships with a fine-tuned LoRA adapter (9.3 MB) and inference script.

Skill contract

Component Path Notes
Inference script scripts/inference.py Entry point — humanize() function or CLI
LoRA adapters assets/adapters/adapters.safetensors.json 12.3 MB base64 JSON; auto-decoded to binary on first run
Pattern weights data/analysis/weights.json Corpus-derived, loaded by inference at runtime
Decoder scripts/decode_adapters.py Reconstructs .safetensors binary from JSON (auto or manual)
Installer scripts/install_deps.sh One-time: pip install mlx mlx-lm transformers + decode
Base model Qwen/Qwen3-8B-MLX-4bit Downloaded from HuggingFace on first run (~4.5 GB, cached)

Requirements: Apple Silicon macOS with Python 3.9+.

Quick Start

bash scripts/install_deps.sh          # one-time: installs deps + decodes adapter
python scripts/inference.py --file draft.txt   # adapter auto-decodes if not already done

Or from Python:

from scripts.inference import humanize
print(humanize("Your AI-drafted essay text here..."))

Weighted pattern table (descending priority)

When humanizing, address higher-weight rows first. Weights are data-driven from corpus analysis (Mann-Whitney); zero-weight rows were not statistically significant.

ID Weight Category Pattern
P06_CLICHE_METAPHORS 0.1358 vocabulary Cliche metaphors
P15_EM_DASH_OVERKILL 0.1358 punctuation Em dash overkill
P21_MARKDOWN_ARTIFACTS 0.1358 formatting Markdown artifacts
P23_TEXTBOOK_BOLDING 0.1358 formatting Textbook bolding
P12_PRESENT_PARTICIPLE_TAIL 0.1133 rhetorical Present participle tailing
P10_RULE_OF_THREES 0.0806 rhetorical Rule of threes
P04_AI_VOCABULARY 0.0621 vocabulary AI vocabulary
P14_COMPULSIVE_SUMMARIES 0.0598 rhetorical Compulsive summaries
P05_EXCESSIVE_ADVERBS 0.0540 vocabulary Excessive adverbs
P13_OVER_ATTRIBUTION 0.0529 rhetorical Over-attribution
P11_FALSE_RANGES 0.0341 rhetorical False ranges
P17_TRANSITION_OVERUSE 0.0001 punctuation Overuse of transition words
P01_UNDUE_EMPHASIS 0.0000 content Undue emphasis
P02_SUPERFICIAL_ANALYSIS 0.0000 content Superficial analysis
P03_REGRESSION_TO_MEAN 0.0000 content Regression to the mean
P07_REDUNDANT_MODIFIERS 0.0000 vocabulary Redundant modifiers
P08_FILLER_HEDGING 0.0000 vocabulary Filler hedging
P09_NEGATIVE_PARALLELISM 0.0000 rhetorical Negative parallelisms
P16_EN_DASH_AVOIDANCE 0.0000 punctuation En dash / hyphen misuse for ranges
P18_COLLABORATIVE_REGISTER 0.0000 register Collaborative register
P19_LETTER_FORMALITY 0.0000 register Letter-style formality
P20_INSTRUCTIONAL_CONDESCENSION 0.0000 register Instructional condescension
P22_EXCESSIVE_LISTS 0.0000 formatting Excessive bulleted/numbered lists
P24_EMOJI_SYMBOL 0.0000 formatting Emoji/symbol injection

Syntactic complexity (MDD / ADD advisory)

Human Merit / Distinction-range writing in CAWSE often shows variable mean dependency distance (MDD); AI prose may cluster more tightly. When humanizing:

  • Reference MDD means from analysis: human ~2.333775514332394, AI ~2.4553791855163483.
  • Variance ratio (human/AI) ~1.7153931408079544: prefer natural mix of shorter and longer dependency links, not uniformly smoothed sentences.
  • Avoid flattening every sentence to minimal dependency length; that can read as a different kind of machine polish.

Mandatory rule (orchestrator)

  1. Output continuous prose suitable for submission (no chat-signoffs, no "hope this helps").
  2. Plain text only for math if any — no raw $$ LaTeX unless user explicitly requests LaTeX.
  3. Preserve author stance and citations if present; do not fabricate references.

Hosted HTTP API (optional, for non-Mac or remote use)

For non-Apple-Silicon machines or multi-user deployments, run the optional FastAPI server on a Mac host and connect via HTTP/OpenAPI:

  1. Install: pip install fastapi uvicorn[standard]
  2. Run: uvicorn api.main:app --host 0.0.0.0 --port 8765 (set HUMANIZE_API_KEY env var for auth)
  3. Point MCP / OpenAPI tools at https://\x3Cyour-host>/openapi.json
  4. Call POST /v1/humanize with JSON {"text":"..."} (+ Authorization: Bearer …)

See references/hosted_api.md for details.

References

功能分析
Type: OpenClaw Skill Name: essay-humanizer Version: 1.0.2 The essay-humanizer skill is a legitimate tool designed to rewrite AI-generated text using a fine-tuned LoRA adapter on Apple Silicon. The code logic in `scripts/inference.py` and `scripts/decode_adapters.py` is transparent, focusing on loading model weights and performing inference via the MLX library. While the LoRA adapter is stored as a base64-encoded JSON string (`assets/adapters/adapters.safetensors.json`), this is a documented packaging choice and the decoding process is clearly handled by the provided scripts without any hidden execution or exfiltration. The instructions in `SKILL.md` are strictly task-oriented, providing formatting and stylistic constraints for the AI agent that align with the stated purpose of academic humanization.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install essay-humanizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /essay-humanizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Major update: Skill now includes a fine-tuned LoRA adapter and inference script for local model use (Apple Silicon only). - Adds LoRA adapter weights, pattern references, training documentation, and inference scripts. - Local inference supported via `Qwen3-8B-MLX-4bit`, with setup instructions and automated adapter decoding. - Optional FastAPI server included for HTTP-based remote use or tool integration. - Documentation and references extended; several previous documentation-only files replaced with executable scripts and model assets. - Still outputs plain text only, with strict prose, math, and citation requirements unchanged.
v1.0.1
- Updated corpus-derived weights for all 24 AI/Human writing patterns; most top priorities now have nonzero weights based on actual analysis. - Added pattern frequency and normalization details for transparency (298 human/57 AI essays; Mann-Whitney U test, log-capped ratios). - Revised instructions: patterns are now prioritized by current weights, not primarily by fixed documentation order. - Slightly simplified MDD/ADD syntactic advisory (rounded stats for readability). - Minor edits for clarity, conciseness, and up-to-date bundle status.
v1.0.0
Essay Humanizer 1.0.0 – Initial release - Introduces a documentation-only Clawhub bundle for humanizing AI-drafted academic/argumentative essays. - Outlines 24 Wikipedia-style AI-writing patterns with corpus-informed weights based on CAWSE/LOCNESS vs DeepSeek analysis. - Provides a weighted table to prioritize common AI artifacts and style issues for correction. - Includes syntactic guidance using MDD/ADD analysis to target human-like sentence complexity. - Sets strict rules for output: continuous prose, plain text for math, and preservation of author stance/citations. - No executables, models, or network dependencies are bundled; the package is for orchestration and documentation only.
元数据
Slug essay-humanizer
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Essay Humanizer 是什么?

Rewrite AI-drafted essays into more human-like academic prose. Fine-tuned LoRA over Qwen3-8B guided by 24 Wikipedia-style AI-writing pattern weights plus MDD... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 178 次。

如何安装 Essay Humanizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install essay-humanizer」即可一键安装,无需额外配置。

Essay Humanizer 是免费的吗?

是的,Essay Humanizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Essay Humanizer 支持哪些平台?

Essay Humanizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Essay Humanizer?

由 kevin0818-lxd(@kevin0818-lxd)开发并维护,当前版本 v1.0.2。

💬 留言讨论