insta-humanize 是做什麼的?
One tool in this folder and it does both jobs: clean and score. Never judge a draft by reading it twice - run the panel. Eyes forgive what counts do not.
python3 detox.py draft.txt --report # clean it, show every change
python3 detox.py --check draft.txt # score only, verdict out
python3 detox.py --compare before.txt after.txt # prove the delta
What runs automatically
Three passes, in this order:
- Invisible characters. Zero-width spaces and joiners, word joiners, byte-order marks, tag characters, soft hyphens. A keyboard never produces them, they survive copy-paste, and they are the loudest machine tell there is. Every one is deleted, including unnamed format characters.
- Typography. Em dashes become commas, curly quotes become straight, ellipses become three dots, fancy bullets become hyphens. The em dash pass matters most: it collapses the dash and repairs the punctuation it leaves behind.
- The lexicon.
slopwords.jsonin this folder - a swap list, a delete list, and an Instagram-only block for caption and voiceover vocabulary. The file is meant to be edited. If the user keeps a word the lexicon removes, delete that entry from the file, do not argue.
What is flagged, never auto-rewritten
Changing sentence architecture needs judgment, so the panel flags and the human rewrites:
- "It's not just X, it's Y" and "not only X but also Y" frames
- Rule-of-three triads
- The one-word question stinger: "The result?"
- The video preamble: "in this video I'm going to show you"
- Emoji bullet lists and hashtag walls
- Three or more shouted words in a row
Rewrite each flagged line keeping the meaning, then re-run --check. The
rewrite is the part that moves NEEDS-A-PASS to CLEAN.
The six signals
| signal | what zero means |
|---|---|
| invisible_chars | watermark characters still present |
| dashes | em and en dashes still in the text |
| slop_density | lexicon terms per hundred words |
| structural_tells | templates and triads still standing |
| shouting | all-caps runs |
| rhythm | sentence lengths suspiciously uniform |
Overall 85 or higher is CLEAN, 65 to 85 is NEEDS-A-PASS, under 65 is ROBOT. Say the verdict, the number, and the two weakest signals. Then show the cleaned text. If any lines are flagged, offer the rewrites yourself.
The Instagram-specific rule
Captions are short and scripts get spoken. A written-sounding phrase is a larger share of a 600-character caption than of an essay, and a voiceover line nobody can say in one breath is obvious in the first take. Read the final script aloud in your head: if a line trips, it trips on camera too.