Skip to content

Flag every em dash, escalate at three per paragraph - #4

Merged
benjaminjackson merged 2 commits into
mainfrom
em-dash-severity
Jul 27, 2026
Merged

Flag every em dash, escalate at three per paragraph#4
benjaminjackson merged 2 commits into
mainfrom
em-dash-severity

Conversation

@benjaminjackson

Copy link
Copy Markdown
Owner

Summary

  • New rule em-dash (structure, info): flags any em dash, not just dense paragraphs
  • em-dash-overuse (3+ em dashes in one paragraph) bumped from info to warning
  • error stays reserved: measured against Moby-Dick and Walden, 3+ em-dash paragraphs occur in 6-11% of paragraphs, well above "essentially zero false-positive risk"
  • Updated README/SPEC/CHANGELOG rule counts and cross-rule fixture guard for the new overlap

Test plan

  • rspec — 181 examples, 0 failures
  • Manual: dense em-dash paragraph produces 4x info em-dash + 1x warning em-dash-overuse, exit 1
  • Manual: en dash / --/- text stays clean, exit 0
  • sloplint rules lists both rules with correct severities

🤖 Generated with Claude Code

https://claude.ai/code/session_01XKKu3wVKfjzVU5Dd8wzL9E

benjaminjackson and others added 2 commits July 27, 2026 15:47
Split em-dash-overuse into two rules: em-dash (info) flags any em dash,
while em-dash-overuse (now warning, up from info) still catches three or
more in one paragraph. error stays unused -- measured against Moby-Dick
and Walden, 3+ em-dash paragraphs are too common (6-11%) to call
zero-false-positive.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XKKu3wVKfjzVU5Dd8wzL9E
examples_ok for em-dash used hyphens standing in for em dashes -- bad
typography endorsed as acceptable. Replace with real prose showing correct
hyphen and en-dash usage, and add a lone-dash examples_bad fixture (the
shape a model reaches for most).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XKKu3wVKfjzVU5Dd8wzL9E
@benjaminjackson
benjaminjackson merged commit 731fb4b into main Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant