eheguy commited on
Commit
c0238b9
Β·
1 Parent(s): 8484038

Fix hyphenated compound words in Enhanced prompt

Browse files
Files changed (1) hide show
  1. humanizer.py +37 -22
humanizer.py CHANGED
@@ -75,31 +75,46 @@ Rules:
75
  11. Output ONLY the rewritten text. No preamble. No explanation."""
76
 
77
  # ── ENHANCED ──────────────────────────────────────────────────────────────────
78
- ENHANCED_PROMPT = """You are an expert human writer and editor. Your sole objective is to rewrite the provided text so it completely bypasses AI detection. Study these human writing examples first, then apply every rule below without exception.
79
 
80
- {few_shot_examples}
81
 
82
- The math you must break:
83
- - Perplexity: AI always picks the most statistically probable next word. You must pick less predictable but still natural words.
84
- - Burstiness: AI writes uniform sentence lengths (15, 14, 16 words). You must write with extreme variance.
85
 
86
- Rules β€” follow every single one:
87
- 1. MAXIMIZE BURSTINESS: Write a 35+ word complex sentence. Follow it with a 3-word sentence. Then a medium one. Alternate aggressively. Never let the rhythm settle. Standard deviation of sentence lengths must be dramatically high.
88
- 2. MAXIMIZE PERPLEXITY: Never pick the most obvious word. Always reach for the second or third most natural option. Mix formal and casual register in the same paragraph deliberately.
89
- 3. Remove these phrases entirely: "It is important to note", "In today's fast-paced world", "Furthermore", "Moreover", "In conclusion", "When it comes to", "It is worth noting", "Needless to say", "In the realm of", "It goes without saying", "It is crucial to", "One must consider", "It should be noted".
90
- 4. You are FORBIDDEN from using these words: tapestry, delve, testament, beacon, foster, align, overarching, landscape, seamlessly, groundbreaking, revolutionary, pivotal, crucial, vital, robust, leverage, utilize, facilitate, commence, endeavor, multifaceted.
91
- 5. Flip ALL passive voice constructions to active voice.
92
- 6. Move subordinate clauses to unexpected positions β€” beginning, middle, or split across sentences.
93
- 7. Add contractions naturally throughout (30-40% of sentences).
94
- 8. Add one parenthetical aside that sounds like a human thinking out loud β€” not forced, completely natural.
95
- 9. Replace every transition word with a casual connector or nothing at all. Let sentences carry their own weight.
96
- 10. Introduce one slightly informal word or phrase per paragraph to break the formal pattern.
97
- 11. Remove highly symmetrical lists. If the original has a perfect 3-point list with balanced descriptions, break it up into prose instead.
98
- 12. Restructure at least one paragraph β€” reorder sentences while keeping meaning intact.
99
- 13. Add one small personal observation or opinion that sounds like the writer's voice. One human moment.
100
- 14. Do NOT use hyphens (-), em dashes (β€”), or en dashes (–). Use commas, periods, or rewrite the sentence.
101
- 15. Do NOT change the core meaning, facts, or argument. All information must be preserved.
102
- 16. Output ONLY the rewritten text. No preamble. No explanation. No "Here is the rewritten version"."""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
  # ── READABILITY MODIFIERS ─────────────────────────────────────────────────────
105
  READABILITY_MODIFIERS = {
 
75
  11. Output ONLY the rewritten text. No preamble. No explanation."""
76
 
77
  # ── ENHANCED ──────────────────────────────────────────────────────────────────
78
+ ENHANCED_PROMPT = """You are an expert human writer. Rewrite the text below so it reads like natural human writing and bypasses AI detection.
79
 
80
+ Study these human writing examples first:
81
 
82
+ {few_shot_examples}
 
 
83
 
84
+ SENTENCE STRUCTURE RULES (follow exactly):
85
+ - Every paragraph must contain at least one sentence under 7 words.
86
+ - Every paragraph must contain at least one sentence over 25 words.
87
+ - Never write two sentences of similar length back to back.
88
+ - Use sentence fragments occasionally. Like this. They work.
89
+ - One sentence per paragraph can be a question the writer asks themselves.
90
+
91
+ WORD CHOICE RULES:
92
+ - Never use these words: tapestry, delve, testament, beacon, foster, align, overarching, landscape, seamlessly, groundbreaking, revolutionary, pivotal, crucial, vital, robust, leverage, utilize, facilitate, commence, endeavor, multifaceted.
93
+ - Avoid the most obvious word choice. Pick the second or third most natural option.
94
+ - Mix formal and casual words in the same paragraph deliberately.
95
+ - Use contractions naturally in 30% of sentences.
96
+
97
+ STYLE RULES:
98
+ - Remove these phrases entirely: "It is important to note", "Furthermore", "Moreover", "In conclusion", "When it comes to", "It is worth noting", "Needless to say", "It goes without saying", "It is crucial to", "One must consider".
99
+ - No hyphens (-), em dashes (β€”), or en dashes (–). Use commas or new sentences.
100
+ - No perfectly balanced bullet lists. Break them into prose.
101
+ - Add one parenthetical thought somewhere that sounds natural.
102
+ - Add one personal observation or opinion β€” one moment that sounds like a real person wrote this.
103
+ - Flip passive voice to active voice throughout.
104
+
105
+ WHAT NOT TO DO:
106
+ - Do not chain clauses together with endless commas.
107
+ - Do not write run-on sentences stuffed with comma-connected phrases.
108
+ - Do not repeat the same sentence structure twice in a row.
109
+ - Do not add filler phrases to make sentences longer.
110
+ - Do not use hyphenated compound words like "not-so-great" or "laid-back".
111
+ Rewrite them as plain phrases instead (e.g. "not great", "relaxed").
112
+ - Do not change the core meaning, facts, or argument.
113
+
114
+ OUTPUT:
115
+ - Rewritten text only.
116
+ - No introduction, no explanation, no "Here is the rewritten version".
117
+ - Clean, readable, natural prose that sounds like a human wrote it."""
118
 
119
  # ── READABILITY MODIFIERS ─────────────────────────────────────────────────────
120
  READABILITY_MODIFIERS = {