Spaces:
Running
Running
eheguy commited on
Commit Β·
171ea3d
1
Parent(s): 861061c
Remove hyphens and dashes from all output prompts
Browse files- humanizer.py +6 -3
humanizer.py
CHANGED
|
@@ -49,7 +49,8 @@ SIMPLE_PROMPT = """You are a light text editor. Rewrite the text the user sends
|
|
| 49 |
2. When choosing words, avoid the most common or obvious choice. Pick the second or third most natural option.
|
| 50 |
3. Do NOT change sentence structure, length, or order.
|
| 51 |
4. Do NOT change the meaning, facts, or argument.
|
| 52 |
-
5. Output ONLY the rewritten text. No preamble. No explanation.
|
|
|
|
| 53 |
|
| 54 |
# ββ STANDARD ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 55 |
STANDARD_PROMPT = """You are a text restructuring engine. Rewrite the text the user sends with these rules:
|
|
@@ -61,7 +62,8 @@ STANDARD_PROMPT = """You are a text restructuring engine. Rewrite the text the u
|
|
| 61 |
5. Add 1 or 2 contractions where formal phrasing sits (e.g. "it is" -> "it's").
|
| 62 |
6. Word choice entropy: deliberately avoid the most statistically obvious word. Use the second or third most natural synonym instead. Mix formal and casual register.
|
| 63 |
7. Do NOT change the meaning, facts, or argument.
|
| 64 |
-
8. Output ONLY the rewritten text. No preamble. No explanation.
|
|
|
|
| 65 |
|
| 66 |
# ββ ENHANCED ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 67 |
ENHANCED_PROMPT = """You are an aggressive text humanizer. Study these human writing examples carefully, then rewrite the user's text to match that same natural, human quality:
|
|
@@ -82,7 +84,8 @@ Now rewrite the user's text following ALL of these rules:
|
|
| 82 |
10. Restructure at least one paragraph β reorder sentences while keeping meaning intact.
|
| 83 |
11. Add one small opinion, observation, or aside that sounds like the writer's voice β not a fact, just a human moment.
|
| 84 |
12. Do NOT change the core meaning, facts, or argument. All information must be preserved.
|
| 85 |
-
13. Output ONLY the rewritten text. No preamble. No explanation. No "Here is the rewritten version".
|
|
|
|
| 86 |
|
| 87 |
# ββ READABILITY MODIFIERS βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 88 |
READABILITY_MODIFIERS = {
|
|
|
|
| 49 |
2. When choosing words, avoid the most common or obvious choice. Pick the second or third most natural option.
|
| 50 |
3. Do NOT change sentence structure, length, or order.
|
| 51 |
4. Do NOT change the meaning, facts, or argument.
|
| 52 |
+
5. Output ONLY the rewritten text. No preamble. No explanation.
|
| 53 |
+
6. Do NOT use hyphens (-), em dashes (β), or en dashes (β). Use commas or separate sentences instead."""
|
| 54 |
|
| 55 |
# ββ STANDARD ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 56 |
STANDARD_PROMPT = """You are a text restructuring engine. Rewrite the text the user sends with these rules:
|
|
|
|
| 62 |
5. Add 1 or 2 contractions where formal phrasing sits (e.g. "it is" -> "it's").
|
| 63 |
6. Word choice entropy: deliberately avoid the most statistically obvious word. Use the second or third most natural synonym instead. Mix formal and casual register.
|
| 64 |
7. Do NOT change the meaning, facts, or argument.
|
| 65 |
+
8. Output ONLY the rewritten text. No preamble. No explanation.
|
| 66 |
+
9. Do NOT use hyphens (-), em dashes (β), or en dashes (β) anywhere in the output. If you need to connect two ideas, use a comma, a new sentence, or rewrite the phrase instead."""
|
| 67 |
|
| 68 |
# ββ ENHANCED ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 69 |
ENHANCED_PROMPT = """You are an aggressive text humanizer. Study these human writing examples carefully, then rewrite the user's text to match that same natural, human quality:
|
|
|
|
| 84 |
10. Restructure at least one paragraph β reorder sentences while keeping meaning intact.
|
| 85 |
11. Add one small opinion, observation, or aside that sounds like the writer's voice β not a fact, just a human moment.
|
| 86 |
12. Do NOT change the core meaning, facts, or argument. All information must be preserved.
|
| 87 |
+
13. Output ONLY the rewritten text. No preamble. No explanation. No "Here is the rewritten version".
|
| 88 |
+
14. Do NOT use hyphens (-), em dashes (β), or en dashes (β) anywhere in the output. Never use them to connect clauses or add asides. Use a comma, a period, or rewrite the sentence completely instead."""
|
| 89 |
|
| 90 |
# ββ READABILITY MODIFIERS βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 91 |
READABILITY_MODIFIERS = {
|