feat(rules): add is-is rule for the doubled copula - #9
Merged
Conversation
"What it is is..." and "the thing is, is that..." read as unedited no matter which of the three things produced them -- probed at 0 hits across ~1.9M words, so the bare pattern needs no anchor. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The "surface is rare enough that the pattern needs no anchor" framing explained a regex design choice instead of the tell itself; cut, kept the probe numbers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Frequency numbers don't belong in the flag's why -- most other rules' rationale explains the tell, not the probe. This one now matches. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
is-is(rhetorical-tic,warning): flags the doubled copula — "what it is is a mistake", "the thing is, is that…" — with no anchor, since the bare pattern scored 0 hits across ~1.9M words of probe text (public-domain prose + modern Wikipedia).Test plan
rspec— 244 examples, 0 failuresbin/sloplint check -smoke test on a bad and an ok fixturebin/sloplint explain is-ishttps://claude.ai/code/session_01Ky6xJLM9JoHWdL3CSs2GQw