Merge pull request #145 from dantaspaulo/fix/prompts-no-em-dash

feat(prompts): make 'no em/en dashes' an explicit rule in the content prompts
This commit is contained in:
Paulo Castellano 2026-07-03 19:42:52 -03:00 committed by GitHub
commit 21c4880151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -22,6 +22,7 @@
- Avoid AI-clichés (testament, pivotal moment, emojis on every line, "Let's dive in").
- Keep paragraphs short. Vary sentence rhythm.
- If the user mentions a specific platform, follow that platform's typical conventions.
- NEVER use em dashes or en dashes (— or –). They read as AI-written. Rewrite with a comma, parentheses, a colon, or two separate sentences. Regular hyphens in compound words (e.g. "e-mail") are fine.
@if(!empty($target_chars))
CRITICAL — length for {{ $platform_label ?? 'the target platform' }}:

View file

@ -48,8 +48,8 @@
**False ranges:**
"from X to Y" where X and Y aren't on a meaningful scale — just list them.
**Em dashes (—):**
LLMs overuse them. Most can be commas, periods, or parentheses.
**Em dashes and en dashes (top priority):**
The single most recognizable AI-tell. Remove EVERY one. Rewrite with a comma, parentheses, a colon, or split into two sentences. Regular hyphens in compound words (e.g. "e-mail") are fine. The final output must contain zero — and – characters.
**Curly quotes:**
Replace " " ' ' with straight " " ' '.
@ -96,4 +96,6 @@
For single-post input: humanize the `content` field.
@endif
FINAL CHECK before replying: scan every text field of your JSON output for em dash (—) and en dash (–) characters. If even one remains, rewrite that sentence using a comma, parentheses, a colon, or two separate sentences, until none are left. A response that still contains a — or – is a failed response. Return your answer only after zero remain.
Reply with the JSON object only, no preamble.

View file

@ -16,4 +16,5 @@
- Each `reason` is a 1-line explanation in the output language.
- If the text is fine, return an empty `suggestions` array.
- Do NOT propose stylistic changes. ONLY grammar, spelling, and clarity.
- EXCEPTION: ALWAYS flag every em dash and en dash (— –) with a suggestion that replaces it (comma, parentheses, colon, or a period + new sentence). Removing em/en dashes is a hard rule, not optional style.
- Maximum 8 suggestions per request. Prioritize the most important ones.