Humanize Ai Text
by @cp3d1455926-svg
Detect and remove AI-generated writing patterns to rewrite text for a more natural, human-written style with diagnostic reports and version comparison.
clawhub install humanize-ai-text-cp3dπ About This Skill
name: humanize-ai-text description: Remove signs of AI-generated writing from text. Detects AI vocabulary, puffery, and chatbot artifacts. author: @biostartechnology version: 1.0.0 license: MIT metadata: {"clawdbot":{"emoji":"βοΈ","requires":{"bins":["python3"]}}}
Humanize AI Text
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.
Features
Usage
Detect AI Writing
# Basic detection
python skills/humanize-ai-text/scripts/detect.py text.txtJSON output
python skills/humanize-ai-text/scripts/detect.py text.txt -jScore only
python skills/humanize-ai-text/scripts/detect.py text.txt -sPipe text directly
echo "This text might be AI-generated" | python skills/humanize-ai-text/scripts/detect.py
Transform Text
# Basic transformation
python skills/humanize-ai-text/scripts/transform.py text.txtOutput to file
python skills/humanize-ai-text/scripts/transform.py text.txt -o clean.txtAggressive mode (more changes)
python skills/humanize-ai-text/scripts/transform.py text.txt -aQuiet mode (no progress output)
python skills/humanize-ai-text/scripts/transform.py text.txt -q
Compare Versions
# Compare original and transformed
python skills/humanize-ai-text/scripts/compare.py text.txtCompare and save result
python skills/humanize-ai-text/scripts/compare.py text.txt -o document_v2.txt
Installation
The skill is already installed. To use it, ensure you have Python 3 installed.
Dependencies
No external dependencies required - uses Python standard library.
Pattern Detection
The detection script identifies these AI writing patterns:
1. Citation Bugs
2. Knowledge Cutoff
3. Chatbot Artifacts
4. AI Vocabulary
5. Filler Phrases
6. Stylistic Issues
Best Practices
1. Detect First: Run detection before transformation
2. Review Changes: Always review transformed text
3. Use Compare: Compare versions to understand changes
4. Iterate: May need multiple passes for best results
5. Custom Patterns: Edit patterns.json to add custom detections
Customization
Add Custom Patterns
Edit skills/humanize-ai-text/scripts/patterns.json:
{
"custom_patterns": {
"my_pattern": {
"regex": "pattern_here",
"replacement": "replacement_text",
"description": "What this pattern detects"
}
}
}
Batch Processing
Process multiple files:
for f in *.md; do
python skills/humanize-ai-text/scripts/detect.py "$f" -s
python skills/humanize-ai-text/scripts/transform.py "$f" -a -o "${f%.md}_clean.md" -q
done
Output Formats
Detection Output
AI Detection Report
===================
File: text.txt
AI Probability: 73%Patterns Detected:
AI Vocabulary: 12 instances
Filler Phrases: 8 instances
Stylistic Parallelisms: 5 instances
...
Transformation Output
Original: "I'd be happy to delve into this important topic."
Humanized: "Let's explore this topic."
Security Notes
Integration
With Writing Workflow
1. Write draft (AI-assisted or not) 2. Run detection to check AI score 3. Transform if score is high 4. Compare versions 5. Manual review and final edits
With Content Pipeline
# In CI/CD or pre-commit hook
python skills/humanize-ai-text/scripts/detect.py content.md -s
Fail if AI score > threshold
Troubleshooting
False Positives
Some legitimate writing may trigger patterns. Review manually.
False Negatives
AI models evolve. Update patterns.json regularly.
Encoding Issues
Ensure files are UTF-8 encoded:
python skills/humanize-ai-text/scripts/detect.py file.txt --encoding utf-8
Examples
Example 1: Blog Post
# Check AI score
python skills/humanize-ai-text/scripts/detect.py blog_post.md -s
Output: AI Probability: 68%
Transform
python skills/humanize-ai-text/scripts/transform.py blog_post.md -o blog_post_clean.md -aCompare
python skills/humanize-ai-text/scripts/compare.py blog_post.md -o blog_post_clean.md
Example 2: Email
echo "I hope this email finds you well. I wanted to reach out regarding..." | \
python skills/humanize-ai-text/scripts/detect.py
Example 3: Academic Writing
# Detect AI patterns in paper
python skills/humanize-ai-text/scripts/detect.py paper.md -j > report.jsonTransform with conservative settings
python skills/humanize-ai-text/scripts/transform.py paper.md -o paper_clean.md
Resources
*For more info, visit: https://clawhub.ai/biostartechnology/humanizer*
π‘ Examples
Example 1: Blog Post
# Check AI score
python skills/humanize-ai-text/scripts/detect.py blog_post.md -s
Output: AI Probability: 68%
Transform
python skills/humanize-ai-text/scripts/transform.py blog_post.md -o blog_post_clean.md -aCompare
python skills/humanize-ai-text/scripts/compare.py blog_post.md -o blog_post_clean.md
Example 2: Email
echo "I hope this email finds you well. I wanted to reach out regarding..." | \
python skills/humanize-ai-text/scripts/detect.py
Example 3: Academic Writing
# Detect AI patterns in paper
python skills/humanize-ai-text/scripts/detect.py paper.md -j > report.jsonTransform with conservative settings
python skills/humanize-ai-text/scripts/transform.py paper.md -o paper_clean.md
π Tips & Best Practices
1. Detect First: Run detection before transformation
2. Review Changes: Always review transformed text
3. Use Compare: Compare versions to understand changes
4. Iterate: May need multiple passes for best results
5. Custom Patterns: Edit patterns.json to add custom detections