humanize-chinese

Detect and humanize AI-generated Chinese text. 20+ detection categories, weighted 0-100 scoring with sentence-level analysis, 7 style transforms (casual/zhihu/xiaohongshu/wechat/academic/literary/weibo), sentence restructuring, context-aware replacement. Pure Python, no dependencies. v2.0.0

3,891 stars
Complexity: easy

About this skill

The humanize-chinese skill provides a comprehensive command-line interface for analyzing and refining Chinese text. It can detect over 20 categories of AI patterns, assigning a weighted score from 0 to 100 to indicate the likelihood of AI generation, complete with sentence-level analysis and verbose output options. Beyond detection, its core function is to "humanize" robotic AI writing. This involves sophisticated transformations such as sentence restructuring (merging/splitting), context-aware vocabulary replacement, rhythm variation, and overall diversification to achieve a more natural, human-like tone. Users can apply 7 distinct writing styles, including casual, Zhihu, Xiaohongshu, WeChat, academic, literary, and Weibo, allowing for tailored content generation for specific audiences and platforms. This skill is ideal for content creators, marketers, writers, and anyone working with Chinese text who needs to ensure authenticity, bypass AI detection, or adapt content to specific social or professional contexts. Its pure Python implementation with no external dependencies makes it highly portable and easy to integrate into existing workflows.

Best use case

The primary use case for this skill is to refine and humanize AI-generated Chinese text, ensuring it reads naturally and is appropriate for human consumption or specific social/professional contexts. Content creators, marketers managing Chinese social media, academic writers, and anyone producing public-facing Chinese content will benefit most by transforming robotic AI outputs into engaging, authentic, and stylistically consistent material.

Detect and humanize AI-generated Chinese text. 20+ detection categories, weighted 0-100 scoring with sentence-level analysis, 7 style transforms (casual/zhihu/xiaohongshu/wechat/academic/literary/weibo), sentence restructuring, context-aware replacement. Pure Python, no dependencies. v2.0.0

Users can expect to receive Chinese text that has been analyzed for AI patterns, scored for likelihood of AI generation, and then transformed to sound more natural, human-like, or styled for a specific platform, outputted as a new file or console result.

Practical example

Example input

Please detect AI patterns in `research_summary.txt` and humanize it for a Zhihu audience, saving the output to `zhihu_summary.txt`.

Example output

AI detection score for `research_summary.txt`: 72 (HIGH severity).
The humanized Chinese text (Zhihu style) has been saved to `zhihu_summary.txt`.

When to use this skill

  • When you need to verify if a piece of Chinese text was AI-generated and assess its likelihood.
  • When transforming stiff or robotic AI-generated Chinese content into more natural, human-like language.
  • When adapting Chinese text for specific platforms or audiences (e.g., Zhihu, Xiaohongshu, WeChat, academic settings).
  • When preparing Chinese content for publication where natural tone, authenticity, and style consistency are critical.

When not to use this skill

  • When working with languages other than Chinese, as this skill is language-specific.
  • When the text is already known to be human-written and requires no style or authenticity transformation.
  • When preserving the original, unaltered AI output is strictly required, such as for research or compliance purposes.
  • When working with highly technical or sensitive Chinese text where even minor stylistic changes could alter precise meanings.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/humanize-chinese-2-0-0/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/0xspeter/humanize-chinese-2-0-0/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/humanize-chinese-2-0-0/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How humanize-chinese Compares

Feature / Agenthumanize-chineseStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Detect and humanize AI-generated Chinese text. 20+ detection categories, weighted 0-100 scoring with sentence-level analysis, 7 style transforms (casual/zhihu/xiaohongshu/wechat/academic/literary/weibo), sentence restructuring, context-aware replacement. Pure Python, no dependencies. v2.0.0

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Humanize Chinese AI Text v2.0

Comprehensive CLI for detecting and transforming Chinese AI-generated text. Makes robotic AI writing natural and human-like.

**v2.0 highlights:** weighted 0-100 scoring, sentence-level analysis, sentence restructuring (merge/split), context-aware replacement, rhythm variation, vocabulary diversification, 7 style transforms, external pattern config (`patterns_cn.json`).

## Quick Start

```bash
# Detect AI patterns (20+ categories, 0-100 score)
python scripts/detect_cn.py text.txt
python scripts/detect_cn.py text.txt -v          # verbose + worst sentences
python scripts/detect_cn.py text.txt -s           # score only
python scripts/detect_cn.py text.txt -j           # JSON output

# Humanize text
python scripts/humanize_cn.py text.txt -o clean.txt
python scripts/humanize_cn.py text.txt --scene social
python scripts/humanize_cn.py text.txt --scene tech -a   # aggressive mode
python scripts/humanize_cn.py text.txt --seed 42         # reproducible

# Apply writing styles
python scripts/style_cn.py text.txt --style zhihu -o zhihu.txt
python scripts/style_cn.py text.txt --style xiaohongshu
python scripts/style_cn.py --list

# Compare before/after
python scripts/compare_cn.py text.txt --scene tech -a
python scripts/compare_cn.py text.txt -o clean.txt
```

---

## Detection System

### Scoring

Weighted 0-100 score with 4 severity levels:

| Score | Level | Meaning |
|-------|-------|---------|
| 0-24  | LOW | Likely human-written |
| 25-49 | MEDIUM | Some AI signals |
| 50-74 | HIGH | Probably AI-generated |
| 75-100 | VERY HIGH | Almost certainly AI |

### Detection Categories

#### 🔴 Critical (weight: 8)
| Category | Examples |
|----------|----------|
| Three-Part Structure | 首先...其次...最后, 一方面...另一方面, 其一...其二...其三 |
| Mechanical Connectors | 值得注意的是, 综上所述, 不难发现, 归根结底, 由此可见 |
| Empty Grand Words | 赋能, 闭环, 数字化转型, 协同增效, 全方位, 多维度 |

#### 🟠 High Signal (weight: 4)
| Category | Examples |
|----------|----------|
| AI High-Frequency Words | 助力, 彰显, 底层逻辑, 抓手, 触达, 沉淀, 复盘 |
| Filler Phrases | 值得一提的是, 众所周知, 毫无疑问 |
| Balanced Arguments | 虽然...但是...同时, 既有...也有...更有 |
| Template Sentences | 随着...的不断发展, 在当今...时代, 作为...的重要组成部分 |

#### 🟡 Medium Signal (weight: 2)
| Category | Examples |
|----------|----------|
| Hedging Language | 在一定程度上, 某种程度上, 通常情况下 (>5 occurrences) |
| List Addiction | Excessive numbered/bulleted lists |
| Punctuation Overuse | Dense em dashes, semicolons |
| Excessive Rhetoric | 对偶/排比句过多 |

#### ⚪ Style Signal (weight: 1.5)
| Category | Description |
|----------|-------------|
| Uniform Paragraphs | Low CV in paragraph lengths |
| Low Burstiness | Monotonous sentence lengths |
| Emotional Flatness | Lack of emotional/personal expressions |
| Repetitive Starters | Same sentence starters >3 times |
| Low Entropy | Low character-level entropy (predictable text) |

### Sentence-Level Analysis

With `-v` (verbose) mode, the detector identifies the most AI-like sentences:

```
── 最可疑句子 ──
  1. [16分] 随着人工智能技术的不断发展,在当今数字化转型时代...
     原因: 数字化转型, 深度融合, 模板: 随着.*?的(不断)?发展
```

---

## Humanization Engine

### Transforms (applied in order)

1. **Structure cleanup** — Remove three-part structure (首先/其次/最后)
2. **Phrase replacement** — Context-aware replacement of AI phrases (regex patterns first, then plain text, longest-first matching)
3. **Sentence merge** — Merge overly short consecutive sentences
4. **Sentence split** — Split long sentences at natural breakpoints (但是/不过/同时)
5. **Punctuation normalization** — Reduce excessive semicolons, em dashes
6. **Vocabulary diversification** — Replace repeated words (进行/实现/提供 etc.) with synonyms
7. **Paragraph rhythm** — Vary uniform paragraph lengths (merge short, split long)
8. **Casual injection** — Add human expressions (scene-dependent)
9. **Paragraph shortening** — For social/chat scenes

### Scenes

| Scene | Casualness | Best For |
|-------|-----------|----------|
| `general` | 0.3 | Default, balanced |
| `social` | 0.7 | Social media, short posts |
| `tech` | 0.3 | Tech blogs, tutorials |
| `formal` | 0.1 | Formal articles, reports |
| `chat` | 0.8 | Conversations, messaging |

### Aggressive Mode (`-a`)

Adds +0.3 casualness, more colloquial expressions, stronger sentence restructuring. Typical score reduction: **60-80 points** on heavily AI-generated text.

### Reproducibility

Use `--seed N` for reproducible results (same input + seed = same output).

---

## Writing Style Transforms

7 specialized Chinese writing styles:

| Style | Name | Description |
|-------|------|-------------|
| `casual` | 口语化 | Like chatting with friends — natural, relaxed |
| `zhihu` | 知乎 | Rational, in-depth, personal opinions |
| `xiaohongshu` | 小红书 | Enthusiastic, emoji-rich, product-focused |
| `wechat` | 公众号 | Storytelling, engaging, relatable |
| `academic` | 学术 | Rigorous, precise, no colloquialisms |
| `literary` | 文艺 | Poetic, imagery-rich, metaphorical |
| `weibo` | 微博 | Short, opinionated, shareable |

### Combine humanize + style

```bash
python scripts/humanize_cn.py text.txt --style xiaohongshu -o xhs.txt
```

This first humanizes (removes AI patterns) then applies the style transform.

---

## External Configuration

All patterns, replacements, and scoring weights are in `scripts/patterns_cn.json`. Edit this file to:

- Add new AI vocabulary patterns
- Customize replacement alternatives
- Adjust scoring weights per severity
- Add regex patterns for template detection
- Set thresholds for hedging language detection

---

## Scripts Reference

### detect_cn.py

```bash
python scripts/detect_cn.py [file] [-j] [-s] [-v] [--sentences N]
```

| Flag | Description |
|------|-------------|
| `-j` | JSON output |
| `-s` | Score only (e.g. "72/100 (high)") |
| `-v` | Verbose: show worst sentences |
| `--sentences N` | Number of worst sentences to show (default: 5) |

### humanize_cn.py

```bash
python scripts/humanize_cn.py [file] [-o output] [--scene S] [--style S] [-a] [--seed N]
```

| Flag | Description |
|------|-------------|
| `-o` | Output file |
| `--scene` | general/social/tech/formal/chat |
| `--style` | casual/zhihu/xiaohongshu/wechat/academic/literary/weibo |
| `-a` | Aggressive mode |
| `--seed` | Random seed for reproducibility |

### style_cn.py

```bash
python scripts/style_cn.py [file] --style S [-o output] [--seed N] [--list]
```

### compare_cn.py

```bash
python scripts/compare_cn.py [file] [-o output] [--scene S] [--style S] [-a]
```

Shows score diff, category changes, and metric comparison before/after humanization.

---

## Workflow

```bash
# 1. Check AI score
python scripts/detect_cn.py document.txt -v

# 2. Humanize with comparison
python scripts/compare_cn.py document.txt --scene tech -a -o clean.txt

# 3. Verify improvement
python scripts/detect_cn.py clean.txt -s

# 4. Optional: apply specific style
python scripts/style_cn.py clean.txt --style zhihu -o final.txt
```

---

## Batch Processing

```bash
# Scan all files
for f in *.txt; do
  echo "=== $f ==="
  python scripts/detect_cn.py "$f" -s
done

# Transform all markdown
for f in *.md; do
  python scripts/humanize_cn.py "$f" --scene tech -a -o "${f%.md}_clean.md"
done
```

Related Skills

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

ai-humanizer

3891
from openclaw/skills

Rewrites AI-generated content to sound natural, human, and undetectable. Removes robotic patterns, adds voice variety, and preserves meaning.

Content & Documentation

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

linkedin-cli

3891
from openclaw/skills

A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.

Content & Documentation

小红书长图文发布 Skill

3891
from openclaw/skills

## 概述

Content & Documentation

openclaw-youtube

3891
from openclaw/skills

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

Content & Documentation

openclaw-media-gen

3891
from openclaw/skills

Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.

Content & Documentation

Cold Email Writer

3891
from openclaw/skills

Writes personalized cold emails that actually get replies

Content & Documentation

Presentation Mastery — Complete Slide Design & Delivery System

3891
from openclaw/skills

You are a Presentation Architect. You help build presentations that persuade, inform, and move people to action. You cover the full lifecycle: audience analysis → narrative structure → slide design → delivery coaching → post-presentation follow-up.

Content & Documentation

Employee Handbook Generator

3891
from openclaw/skills

Build a complete, customized employee handbook for your company. Covers policies, benefits, conduct, leave, remote work, DEI, and compliance — ready for legal review.

Content & Documentation

afrexai-copywriting-mastery

3891
from openclaw/skills

Write high-converting copy for any medium — landing pages, emails, ads, UX, sales pages, video scripts, and brand voice. Complete methodology with frameworks, templates, scoring rubrics, and swipe files. Use when writing or reviewing any user-facing text.

Content & Documentation

afrexai-conversion-copywriting

3891
from openclaw/skills

Write high-converting copy for any surface — landing pages, emails, ads, sales pages, product descriptions, CTAs, video scripts, and more. Complete conversion copywriting system with research methodology, 12 proven frameworks, swipe-file templates, scoring rubrics, and A/B testing protocols. Use when you need to write or review any copy meant to drive action.

Content & Documentation