Humanize Chinese AI Text
Comprehensive CLI for detecting and transforming Chinese AI-generated text. Makes robotic AI writing natural and human-like with 6 specialized writing style transforms.
NEW in v1.1: Style transforms (知乎/小红书/公众号/口语化/学术/文艺), enhanced detection (16 patterns), emotional analysis
Quick Start
# Detect AI patterns (16 categories)
python scripts/detect_cn.py text.txt
# Humanize text
python scripts/humanize_cn.py text.txt -o clean.txt
# Scene-specific humanization
python scripts/humanize_cn.py text.txt --scene social # Social media
python scripts/humanize_cn.py text.txt --scene tech # Tech blog
python scripts/humanize_cn.py text.txt --scene formal # Formal article
# NEW: Apply writing styles
python scripts/humanize_cn.py text.txt --style zhihu -o zhihu.txt
python scripts/humanize_cn.py text.txt --style xiaohongshu -o xhs.txt
python scripts/style_cn.py text.txt --style casual -o casual.txt
# List all available styles
python scripts/style_cn.py --list
# Compare before/after
python scripts/compare_cn.py text.txt -o clean.txt
Detection Categories
The analyzer checks for 16 pattern categories specific to Chinese AI text (v1.1 added 4 new patterns):
Critical (Immediate AI Detection)
| Category |
Examples |
| Three-Part Structure |
首先...其次...最后, 一方面...另一方面 |
| Mechanical Connectors |
值得注意的是, 综上所述, 不难发现 |
| Empty Grand Words |
赋能, 闭环, 智慧时代, 数字化转型 |
High Signal
| Category |
Examples |
| AI High-Frequency Words |
助力, 彰显, 凸显, 焕发, 深度剖析 |
| Technical Jargon Misuse |
解构, 量子纠缠, 光谱 (in non-tech context) |
| Excessive Rhetoric |
对偶句 (>2x), 排比句 (>1x), 引用句 (>4x) |
Medium Signal
| Category |
Examples |
| Punctuation Overuse |
Dense em dashes, excessive semicolons |
| Obscure Metaphors |
Forced, disconnected comparisons |
| Uniform Paragraphs |
Equal-length paragraphs (no rhythm) |
Style Signal
| Category |
Examples |
| Low Burstiness |
Monotonous sentence structure |
| Low Perplexity |
Predictable word choices |
| Emotional Flatness |
NEW Lack of emotional words and expressions |
| Repetitive Structure |
NEW Sentence starters repeat >3 times |
| Slang Overuse |
NEW Internet slang in formal context |
| Vocabulary Homogeneity |
NEW Low diversity in word choice |
Writing Style Transforms (NEW in v1.1)
Transform text into 6 specialized Chinese writing styles:
| Style |
Name |
Description |
Best For |
casual |
口语化风格 |
Like chatting with friends — natural, relaxed |
Social media, messaging |
zhihu |
知乎风格 |
Rational, in-depth, with personal opinions |
Q&A platforms, thoughtful analysis |
xiaohongshu |
小红书风格 |
Enthusiastic, emoji-rich, product-focused |
Lifestyle sharing, reviews, recommendations |
wechat |
公众号风格 |
Storytelling, engaging, relatable |
WeChat articles, newsletters |
academic |
学术风格 |
Rigorous but not stiff, precise terminology |
Academic papers, research reports |
literary |
文艺风格 |
Poetic, imagery-rich, metaphorical |
Creative writing, essays |
Usage
# Apply style directly
python scripts/style_cn.py input.txt --style zhihu -o output.txt
# Combine humanization + style
python scripts/humanize_cn.py ai_text.txt --style xiaohongshu -o natural.txt
# List all styles
python scripts/style_cn.py --list
Style Features
Casual (口语化)
- Removes formal structure (首先/其次/最后)
- Adds colloquial connectors (说实话, 确实, 其实)
- Includes tone particles (吧, 呢, 啊)
- Light emoji usage
Zhihu (知乎)
- Personal opinion markers (从我的经验来看, 个人认为)
- Data/evidence support (实测发现, 根据XX调研)
- Example-driven (举个例子)
- Logical but conversational
Xiaohongshu (小红书)
- Enthusiastic openers (姐妹们!分享一下~)
- High emoji density (😊✨💯)
- Intensifiers (超级, 巨, 绝绝子, yyds)
- Hashtags (#好物分享)
- Short paragraphs
Wechat (公众号)
- Story-driven openings
- Questions for engagement (你有没有想过)
- Relatable scenarios
- Emotional connection
Academic (学术)
- Removes colloquialisms
- Precise terminology
- Formal connectors (研究表明, 数据显示)
- Reduces emotional expressions
Literary (文艺)
- Metaphors and imagery
- Poetic language
- Descriptive phrases (在XX的光影里)
- Artistic expressions
Scripts
detect_cn.py — Scan Chinese AI Patterns
python scripts/detect_cn.py essay.txt
python scripts/detect_cn.py essay.txt -j # JSON output
python scripts/detect_cn.py essay.txt -s # score only
echo "文本" | python scripts/detect_cn.py
Output:
- AI feature statistics (by category)
- AI probability score (low/medium/high/very high)
- Auto-fixable patterns marked
- Perplexity and burstiness indicators
humanize_cn.py — Transform to Human-Like
python scripts/humanize_cn.py essay.txt
python scripts/humanize_cn.py essay.txt -o output.txt
python scripts/humanize_cn.py essay.txt --scene social # Social media style
python scripts/humanize_cn.py essay.txt -a # Aggressive mode
Scene Parameters (--scene):
social: Social media (casual, conversational)
tech: Tech blog (professional but approachable)
formal: Formal article (rigorous but natural)
chat: Chat/dialogue (friendly, concise)
Auto-fixes:
- Remove three-part structure (首先/其次/最后)
- Replace mechanical connectors (值得注意的是 → 注意/要提醒的是)
- Simplify empty words (赋能 → 帮助/提升, 闭环 → 完整流程)
- Reduce punctuation density (em dash, semicolon)
- Control rhetoric frequency (对偶, 排比, 比喻)
Aggressive Mode (-a):
- Add colloquial expressions
- Inject emotional color
- Vary sentence rhythm
- Add personal perspective
compare_cn.py — Before/After Analysis
python scripts/compare_cn.py essay.txt
python scripts/compare_cn.py essay.txt --scene tech -o clean.txt
Shows AI feature comparison and score changes before/after transformation.
style_cn.py — Writing Style Transform (NEW)
python scripts/style_cn.py essay.txt --style zhihu -o essay_zhihu.txt
python scripts/style_cn.py blog.txt --style xiaohongshu -o blog_xhs.txt
python scripts/style_cn.py --list # Show all available styles
Supported styles: casual, zhihu, xiaohongshu, wechat, academic, literary
Transform text into specific Chinese writing styles with style-appropriate vocabulary, tone, and structure.
Workflow
Scan for detection risk:
python scripts/detect_cn.py document.txt
Transform with comparison:
python scripts/compare_cn.py document.txt --scene tech -o document_v2.txt
Verify improvement:
python scripts/detect_cn.py document_v2.txt -s
Manual review for content quality and scene appropriateness
AI Probability Scoring
| Rating |
Criteria |
| Very High |
Three-part structure, mechanical connectors, or empty grand words present |
| High |
>20 issues OR issue density >3% |
| Medium |
>10 issues OR issue density >1.5% |
| Low |
<10 issues AND density <1.5% |
Scene-Specific Guidelines
Social Media (社交媒体)
Style: Casual, conversational, like chatting with friends
- ✅ Short paragraphs (1-3 sentences)
- ✅ Colloquial expressions (说实话, 没想到, 真的绝了)
- ✅ Specific details (product names, locations, personal feelings)
- ✅ Emoji and hashtags
- ❌ Avoid: 值得注意的是, 总而言之
- ❌ Avoid: Long paragraphs, complex sentences
Tech Blog (技术博客)
Style: Professional but approachable, can be humorous
- ✅ Specific tech stack, tool names
- ✅ Code examples, performance data
- ✅ Real experiences ("踩过的坑", "实测效果")
- ✅ Clear structure with headings (not numbered lists)
- ❌ Avoid: 赋能, 闭环, 生态
- ❌ Avoid: 首先/其次/最后structure
Formal Article (正式文章)
Style: Objective, rigorous, but natural
- ✅ Clear logic with proper evidence
- ✅ Precise academic expressions
- ✅ Cited research sources
- ✅ Data and charts supporting arguments
- ❌ Avoid: Excessive rhetoric (对偶, 排比)
- ❌ Avoid: Empty grand words
Chat/Dialogue (对话场景)
Style: Friendly, patient, genuine
- ✅ Concise, targeted responses
- ✅ Empathy and understanding
- ✅ Direct solutions
- ✅ Moderate emoji use
- ❌ Avoid: 很高兴为您服务 (template phrases)
- ❌ Avoid: Lengthy explanations, repetitive questions
Customizing Patterns
Edit scripts/patterns_cn.json to add/modify:
ai_vocabulary_cn — Chinese AI high-frequency words
filler_phrases_cn — Clichés and replacements
empty_words_cn — Empty grand vocabulary
rhetoric_limits — Rhetoric frequency limits
scene_styles — Scene-specific style configs
Batch Processing
# Scan all files
for f in *.txt; do
echo "=== $f ==="
python scripts/detect_cn.py "$f" -s
done
# Transform all markdown (tech blog style)
for f in *.md; do
python scripts/humanize_cn.py "$f" --scene tech -o "${f%.md}_clean.md"
done
Reference
Based on comprehensive Chinese AI writing research:
- Tencent News: "Deconstructing 'AI Flavor': Why We Dislike AI Writing"
- 53AI: "Detection and Optimization of Article 'AI Flavor'"
- AIGCleaner and other Chinese de-AI tools
- Wikipedia: "Signs of AI Writing" (English reference)
Key insights:
- Perplexity: AI text has low perplexity (predictable word choices)
- Burstiness: AI text has low burstiness (uniform sentence structure)
- Emotion: AI text lacks strong opinions and personal color
1---
2name: humanize-chinese
3description: Detect and humanize AI-generated Chinese text with 6 style transforms (casual/zhihu/xiaohongshu/wechat/academic/literary). Removes "AI flavor" using 16 detection patterns. Pure Python, no dependencies. v1.1.0
4allowed-tools:
5 - Read
6 - Write
7 - Edit
8 - exec
9metadata:
10 source: https://skillmd.com/skills/modbender/humanize-chinese
11---
12
13# Humanize Chinese AI Text
14
15Comprehensive CLI for detecting and transforming Chinese AI-generated text. Makes robotic AI writing natural and human-like with 6 specialized writing style transforms.
16
17**NEW in v1.1:** Style transforms (知乎/小红书/公众号/口语化/学术/文艺), enhanced detection (16 patterns), emotional analysis
18
19## Quick Start
20
21```bash
22# Detect AI patterns (16 categories)
23python scripts/detect_cn.py text.txt
24
25# Humanize text
26python scripts/humanize_cn.py text.txt -o clean.txt
27
28# Scene-specific humanization
29python scripts/humanize_cn.py text.txt --scene social # Social media
30python scripts/humanize_cn.py text.txt --scene tech # Tech blog
31python scripts/humanize_cn.py text.txt --scene formal # Formal article
32
33# NEW: Apply writing styles
34python scripts/humanize_cn.py text.txt --style zhihu -o zhihu.txt
35python scripts/humanize_cn.py text.txt --style xiaohongshu -o xhs.txt
36python scripts/style_cn.py text.txt --style casual -o casual.txt
37
38# List all available styles
39python scripts/style_cn.py --list
40
41# Compare before/after
42python scripts/compare_cn.py text.txt -o clean.txt
43```
44
45---
46
47## Detection Categories
48
49The analyzer checks for **16 pattern categories** specific to Chinese AI text (v1.1 added 4 new patterns):
50
51### Critical (Immediate AI Detection)
52| Category | Examples |
53|----------|----------|
54| Three-Part Structure | 首先...其次...最后, 一方面...另一方面 |
55| Mechanical Connectors | 值得注意的是, 综上所述, 不难发现 |
56| Empty Grand Words | 赋能, 闭环, 智慧时代, 数字化转型 |
57
58### High Signal
59| Category | Examples |
60|----------|----------|
61| AI High-Frequency Words | 助力, 彰显, 凸显, 焕发, 深度剖析 |
62| Technical Jargon Misuse | 解构, 量子纠缠, 光谱 (in non-tech context) |
63| Excessive Rhetoric | 对偶句 (>2x), 排比句 (>1x), 引用句 (>4x) |
64
65### Medium Signal
66| Category | Examples |
67|----------|----------|
68| Punctuation Overuse | Dense em dashes, excessive semicolons |
69| Obscure Metaphors | Forced, disconnected comparisons |
70| Uniform Paragraphs | Equal-length paragraphs (no rhythm) |
71
72### Style Signal
73| Category | Examples |
74|----------|----------|
75| Low Burstiness | Monotonous sentence structure |
76| Low Perplexity | Predictable word choices |
77| Emotional Flatness | **NEW** Lack of emotional words and expressions |
78| Repetitive Structure | **NEW** Sentence starters repeat >3 times |
79| Slang Overuse | **NEW** Internet slang in formal context |
80| Vocabulary Homogeneity | **NEW** Low diversity in word choice |
81
82---
83
84## Writing Style Transforms (NEW in v1.1)
85
86Transform text into 6 specialized Chinese writing styles:
87
88| Style | Name | Description | Best For |
89|-------|------|-------------|----------|
90| `casual` | 口语化风格 | Like chatting with friends — natural, relaxed | Social media, messaging |
91| `zhihu` | 知乎风格 | Rational, in-depth, with personal opinions | Q&A platforms, thoughtful analysis |
92| `xiaohongshu` | 小红书风格 | Enthusiastic, emoji-rich, product-focused | Lifestyle sharing, reviews, recommendations |
93| `wechat` | 公众号风格 | Storytelling, engaging, relatable | WeChat articles, newsletters |
94| `academic` | 学术风格 | Rigorous but not stiff, precise terminology | Academic papers, research reports |
95| `literary` | 文艺风格 | Poetic, imagery-rich, metaphorical | Creative writing, essays |
96
97### Usage
98
99```bash
100# Apply style directly
101python scripts/style_cn.py input.txt --style zhihu -o output.txt
102
103# Combine humanization + style
104python scripts/humanize_cn.py ai_text.txt --style xiaohongshu -o natural.txt
105
106# List all styles
107python scripts/style_cn.py --list
108```
109
110### Style Features
111
112#### Casual (口语化)
113- Removes formal structure (首先/其次/最后)
114- Adds colloquial connectors (说实话, 确实, 其实)
115- Includes tone particles (吧, 呢, 啊)
116- Light emoji usage
117
118#### Zhihu (知乎)
119- Personal opinion markers (从我的经验来看, 个人认为)
120- Data/evidence support (实测发现, 根据XX调研)
121- Example-driven (举个例子)
122- Logical but conversational
123
124#### Xiaohongshu (小红书)
125- Enthusiastic openers (姐妹们!分享一下~)
126- High emoji density (😊✨💯)
127- Intensifiers (超级, 巨, 绝绝子, yyds)
128- Hashtags (#好物分享)
129- Short paragraphs
130
131#### Wechat (公众号)
132- Story-driven openings
133- Questions for engagement (你有没有想过)
134- Relatable scenarios
135- Emotional connection
136
137#### Academic (学术)
138- Removes colloquialisms
139- Precise terminology
140- Formal connectors (研究表明, 数据显示)
141- Reduces emotional expressions
142
143#### Literary (文艺)
144- Metaphors and imagery
145- Poetic language
146- Descriptive phrases (在XX的光影里)
147- Artistic expressions
148
149---
150
151## Scripts
152
153### detect_cn.py — Scan Chinese AI Patterns
154
155```bash
156python scripts/detect_cn.py essay.txt
157python scripts/detect_cn.py essay.txt -j # JSON output
158python scripts/detect_cn.py essay.txt -s # score only
159echo "文本" | python scripts/detect_cn.py
160```
161
162**Output:**
163- AI feature statistics (by category)
164- AI probability score (low/medium/high/very high)
165- Auto-fixable patterns marked
166- Perplexity and burstiness indicators
167
168### humanize_cn.py — Transform to Human-Like
169
170```bash
171python scripts/humanize_cn.py essay.txt
172python scripts/humanize_cn.py essay.txt -o output.txt
173python scripts/humanize_cn.py essay.txt --scene social # Social media style
174python scripts/humanize_cn.py essay.txt -a # Aggressive mode
175```
176
177**Scene Parameters (--scene):**
178- `social`: Social media (casual, conversational)
179- `tech`: Tech blog (professional but approachable)
180- `formal`: Formal article (rigorous but natural)
181- `chat`: Chat/dialogue (friendly, concise)
182
183**Auto-fixes:**
184- Remove three-part structure (首先/其次/最后)
185- Replace mechanical connectors (值得注意的是 → 注意/要提醒的是)
186- Simplify empty words (赋能 → 帮助/提升, 闭环 → 完整流程)
187- Reduce punctuation density (em dash, semicolon)
188- Control rhetoric frequency (对偶, 排比, 比喻)
189
190**Aggressive Mode (-a):**
191- Add colloquial expressions
192- Inject emotional color
193- Vary sentence rhythm
194- Add personal perspective
195
196### compare_cn.py — Before/After Analysis
197
198```bash
199python scripts/compare_cn.py essay.txt
200python scripts/compare_cn.py essay.txt --scene tech -o clean.txt
201```
202
203Shows AI feature comparison and score changes before/after transformation.
204
205### style_cn.py — Writing Style Transform (NEW)
206
207```bash
208python scripts/style_cn.py essay.txt --style zhihu -o essay_zhihu.txt
209python scripts/style_cn.py blog.txt --style xiaohongshu -o blog_xhs.txt
210python scripts/style_cn.py --list # Show all available styles
211```
212
213**Supported styles:** casual, zhihu, xiaohongshu, wechat, academic, literary
214
215Transform text into specific Chinese writing styles with style-appropriate vocabulary, tone, and structure.
216
217---
218
219## Workflow
220
2211. **Scan** for detection risk:
222 ```bash
223 python scripts/detect_cn.py document.txt
224 ```
225
2262. **Transform** with comparison:
227 ```bash
228 python scripts/compare_cn.py document.txt --scene tech -o document_v2.txt
229 ```
230
2313. **Verify** improvement:
232 ```bash
233 python scripts/detect_cn.py document_v2.txt -s
234 ```
235
2364. **Manual review** for content quality and scene appropriateness
237
238---
239
240## AI Probability Scoring
241
242| Rating | Criteria |
243|--------|----------|
244| Very High | Three-part structure, mechanical connectors, or empty grand words present |
245| High | >20 issues OR issue density >3% |
246| Medium | >10 issues OR issue density >1.5% |
247| Low | <10 issues AND density <1.5% |
248
249---
250
251## Scene-Specific Guidelines
252
253### Social Media (社交媒体)
254**Style:** Casual, conversational, like chatting with friends
255- ✅ Short paragraphs (1-3 sentences)
256- ✅ Colloquial expressions (说实话, 没想到, 真的绝了)
257- ✅ Specific details (product names, locations, personal feelings)
258- ✅ Emoji and hashtags
259- ❌ Avoid: 值得注意的是, 总而言之
260- ❌ Avoid: Long paragraphs, complex sentences
261
262### Tech Blog (技术博客)
263**Style:** Professional but approachable, can be humorous
264- ✅ Specific tech stack, tool names
265- ✅ Code examples, performance data
266- ✅ Real experiences ("踩过的坑", "实测效果")
267- ✅ Clear structure with headings (not numbered lists)
268- ❌ Avoid: 赋能, 闭环, 生态
269- ❌ Avoid: 首先/其次/最后structure
270
271### Formal Article (正式文章)
272**Style:** Objective, rigorous, but natural
273- ✅ Clear logic with proper evidence
274- ✅ Precise academic expressions
275- ✅ Cited research sources
276- ✅ Data and charts supporting arguments
277- ❌ Avoid: Excessive rhetoric (对偶, 排比)
278- ❌ Avoid: Empty grand words
279
280### Chat/Dialogue (对话场景)
281**Style:** Friendly, patient, genuine
282- ✅ Concise, targeted responses
283- ✅ Empathy and understanding
284- ✅ Direct solutions
285- ✅ Moderate emoji use
286- ❌ Avoid: 很高兴为您服务 (template phrases)
287- ❌ Avoid: Lengthy explanations, repetitive questions
288
289---
290
291## Customizing Patterns
292
293Edit `scripts/patterns_cn.json` to add/modify:
294- `ai_vocabulary_cn` — Chinese AI high-frequency words
295- `filler_phrases_cn` — Clichés and replacements
296- `empty_words_cn` — Empty grand vocabulary
297- `rhetoric_limits` — Rhetoric frequency limits
298- `scene_styles` — Scene-specific style configs
299
300---
301
302## Batch Processing
303
304```bash
305# Scan all files
306for f in *.txt; do
307 echo "=== $f ==="
308 python scripts/detect_cn.py "$f" -s
309done
310
311# Transform all markdown (tech blog style)
312for f in *.md; do
313 python scripts/humanize_cn.py "$f" --scene tech -o "${f%.md}_clean.md"
314done
315```
316
317---
318
319## Reference
320
321Based on comprehensive Chinese AI writing research:
322- Tencent News: "Deconstructing 'AI Flavor': Why We Dislike AI Writing"
323- 53AI: "Detection and Optimization of Article 'AI Flavor'"
324- AIGCleaner and other Chinese de-AI tools
325- Wikipedia: "Signs of AI Writing" (English reference)
326
327Key insights:
328- **Perplexity**: AI text has low perplexity (predictable word choices)
329- **Burstiness**: AI text has low burstiness (uniform sentence structure)
330- **Emotion**: AI text lacks strong opinions and personal color