sloplint 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,18 +1,48 @@
1
1
  # sloplint
2
2
 
3
- A dependency-free CLI that scans prose for the tells of AI-generated **slop** and reports them as linting notes. Think `proselint`, but aimed narrowly at the rhetorical tics and puffery that mark LLM writing: the "no X, no Y" chains, the "rich tapestry of," the "some critics argue" hedging. It writes JSON an agent can act on and human text a person can read.
3
+ A dependency-free CLI that scans prose for the tells of AI-generated **slop** and reports them as notes. Think `proselint`, but aimed narrowly at the tics and puffery that mark LLM writing: the `no X, no Y` chains, the `rich tapestry of`, the `some critics argue` hedging. It writes JSON an agent can act on and text a person can read.
4
4
 
5
- The primary reader is an agent (Claude Code and friends) that runs sloplint, reads the JSON, and rewrites what it flags. Humans are the secondary reader, and everything is built to keep the false-positive rate low enough that a flag is worth trusting.
5
+ The primary reader is an agent (Claude Code and friends) that runs sloplint, reads the JSON, and rewrites what it flags. A human is the secondary reader, and I keep the false-positive rate low enough that a note is worth trusting.
6
6
 
7
- For the tells a regex cannot see, there is a second gem, [sloplint-judge](#sloplint-judge), whose rules are questions put to a model and whose notes come back in the same JSON. It is optional, it needs an API key, and it is the only part of sloplint that sends your text anywhere.
7
+ ## Quick start
8
8
 
9
- ## What it catches, and what it doesn't
9
+ The one recipe to learn, and the one an agent should use:
10
+
11
+ ```bash
12
+ cat draft.md | sloplint check --markdown -o json -
13
+ ```
14
+
15
+ `--markdown` blanks out code, HTML comments, and URLs first, `-o json` gives the JSON output, and `-` reads stdin.
16
+
17
+ Exit 0 means clean, 1 means notes found, anything higher is an error. `check` is the default command, so `sloplint draft.md`, `sloplint -`, and a bare `sloplint` with piped stdin all scan.
10
18
 
11
- A pattern earns a place in the catalog only if it shows up constantly in AI writing and rarely in careful human writing. Passive voice, weak adverbs, wordiness, clichés a person reaches for too: those belong in `proselint` or `write-good`, not here. sloplint is not a general prose linter and never tries to be. It hunts the specific fingerprints of a language model, so an agent can act on a flag instead of second-guessing it.
19
+ One flag more, `--judge`, adds a second catalog of rules that ask a model what no pattern can match. [The judge](#the-judge-the-tells-a-regex-cannot-reach) sets that up, and it is the only part of sloplint that sends your text anywhere.
20
+
21
+ The human output drops `-o json`:
22
+
23
+ ```
24
+ $ printf 'The report is a rich tapestry of vibrant detail.\nThat is exactly the point I keep making about it.\n' | sloplint check -
25
+ -:1:17: error (high confidence) rich-tapestry "rich tapestry"/"tapestry of" is a signature AI cliché.
26
+ excerpt: The report is a [rich tapestry] of vibrant detail. That is exactly the…
27
+ why: 'tapestry of' is one of the most reliable single-phrase model tells.
28
+ fix: Cut the metaphor; name the actual things.
29
+
30
+ -:1:34: error (high confidence) puffery-words Wikipedia-style puffery word/phrase — a common AI tell.
31
+ excerpt: The report is a rich tapestry of [vibrant] detail. That is exactly the point I…
32
+ why: Travel-brochure adjectives and phrases that models reach for and careful writers avoid.
33
+ fix: Replace with a concrete, specific detail or cut it.
34
+
35
+ -:2:1: info (medium confidence) exact-exactly "exact/exactly" is reflexive emphasis unless it names something checkable.
36
+ excerpt: …is a rich tapestry of vibrant detail. [That is exactly] the point I keep making about it.
37
+ why: Models reach for 'exact/exactly' as filler emphasis on a claim with nothing to check; it earns its place only next to a number, a name, or a stated identity.
38
+ fix: Cut it, or replace with the number, name, or match it's supposed to be precise about.
39
+ ```
40
+
41
+ The brackets mark the match; the rest lets you see what you're fixing without opening the file, *why* included, so an agent has the rationale without a second command. The confidence is how likely the note is right; a `low` note is a place to look, not a finding.
12
42
 
13
43
  ## Installation
14
44
 
15
- Requires **Ruby 3.3+** and nothing else. The runtime is standard library only (`optparse`, `json`, native regex). The Ruby that macOS ships at `/usr/bin/ruby` is 2.6 and too old; `brew install ruby` gets you a current one.
45
+ Requires **Ruby 3.3+** and nothing else: it runs on the standard library alone (`optparse`, `json`, native regex). The Ruby that macOS ships at `/usr/bin/ruby` is 2.6 and too old; `brew install ruby` gets you a current one.
16
46
 
17
47
  ### In Claude Cowork or the Claude desktop app
18
48
 
@@ -22,13 +52,15 @@ Open **Customize → Plugins → Add marketplace** and paste exactly this:
22
52
  benjaminjackson/sloplint
23
53
  ```
24
54
 
25
- Not the web address of the page you are reading — just those two words with the slash, and no slash on the end. `https://github.com/benjaminjackson/sloplint` works too, but a link copied from a page you were browsing usually has more on the end of it and will fail. Then install **sloplint** from the list.
55
+ Then install **sloplint** from the list.
56
+
57
+ Paste those two words and nothing else: no `https://` on the front, no slash on the end. The full URL `https://github.com/benjaminjackson/sloplint` works too, but a URL copied from a page you were browsing usually carries a `/tree/main` or a tracking parameter on the end, and anything after the repository name fails.
26
58
 
27
- Installing this way needs no package install of any kind, which is why it works in Cowork, where `gem install` cannot reach the internet. Claude Code carries the source along with the plugin and runs it in place.
59
+ This way needs no package manager at all, which is why it works in Cowork, where `gem install` cannot reach the internet. The plugin carries its own source and runs it in place.
28
60
 
29
- New rules reach you when you click **Update** on the marketplace. Nothing updates on its own.
61
+ New rules reach you when you click **Update** on the marketplace; nothing updates on its own.
30
62
 
31
- Once it is installed, ask Claude to check a draft, or run `/sloplint:check`.
63
+ Now ask Claude to check a draft, or run `/sloplint:check`.
32
64
 
33
65
  ### In Claude Code
34
66
 
@@ -40,7 +72,8 @@ Once it is installed, ask Claude to check a draft, or run `/sloplint:check`.
40
72
  ### In a terminal
41
73
 
42
74
  ```bash
43
- gem install sloplint
75
+ gem install sloplint # the regex rules, offline and free
76
+ gem install sloplint-judge # optional, the judge rules behind --judge
44
77
  ```
45
78
 
46
79
  Or build from source:
@@ -52,39 +85,29 @@ gem build sloplint.gemspec
52
85
  gem install ./sloplint-*.gem
53
86
  ```
54
87
 
55
- Either way, that puts a `sloplint` executable on your path.
88
+ Either way you get a `sloplint` executable on your path.
56
89
 
57
- ## Quick start
58
-
59
- The recipe sloplint is built around, and the one an agent should use:
90
+ ### In a Ruby project
60
91
 
61
- ```bash
62
- cat draft.md | sloplint check --markdown -o json -
92
+ ```ruby
93
+ gem "sloplint"
94
+ gem "sloplint-judge" # optional, the judge rules
63
95
  ```
64
96
 
65
- `--markdown` blanks out code, HTML comments, and URLs first, `-o json` emits the machine-readable form, and `-` reads stdin. Exit 0 means clean, 1 means notes found, anything higher is an error. `check` is the default command, so `sloplint draft.md`, `sloplint -`, and a bare `sloplint` with piped stdin all scan.
97
+ That gives you `bundle exec sloplint check ...` and a library. The engine is a plain method over a string, so one call scans what a model wrote before it reaches a user:
66
98
 
67
- The human-readable form drops `-o json`:
99
+ ```ruby
100
+ require "sloplint"
68
101
 
102
+ notes = Sloplint::Engine.scan(draft, markdown: true)
103
+ notes.map(&:to_h) # the same hashes -o json prints
69
104
  ```
70
- $ printf 'The report is a rich tapestry of vibrant detail.\nThat is exactly the point I keep making about it.\n' | sloplint check -
71
- -:1:17: error rich-tapestry "rich tapestry"/"tapestry of" is a signature AI cliché.
72
- excerpt: The report is a [rich tapestry] of vibrant detail. That is exactly the…
73
- why: 'tapestry of' is one of the most reliable single-phrase model tells.
74
- fix: Cut the metaphor; name the actual things.
75
105
 
76
- -:1:34: error puffery-words Wikipedia-style puffery word/phrase — a common AI tell.
77
- excerpt: The report is a rich tapestry of [vibrant] detail. That is exactly the point I…
78
- why: Travel-brochure adjectives and phrases that models reach for and careful writers avoid.
79
- fix: Replace with a concrete, specific detail or cut it.
106
+ `Sloplint::Judge::Engine.scan(draft, markdown: true)` runs the judge rules. In a request path they cost what the regex rules do not: a network call to TypeSafe, a second or two per document, and money per run. The regex rules cost none of that, so reach for them inline and keep the judge rules for a background job, a review step or a test. If all you want is the command, `require: false` in a `:development` group keeps both out of the app.
80
107
 
81
- -:2:1: info exact-exactly "exact/exactly" is reflexive emphasis unless it names something checkable.
82
- excerpt: …is a rich tapestry of vibrant detail. [That is exactly] the point I keep making about it.
83
- why: Models reach for 'exact/exactly' as filler emphasis on a claim with nothing to check; it earns its place only next to a number, a name, or a stated identity.
84
- fix: Cut it, or replace with the number, name, or match it's supposed to be precise about.
85
- ```
108
+ ## What it catches, and what it doesn't
86
109
 
87
- The brackets mark the match; the rest is there so you can see what you're fixing without opening the file — including *why*, so an agent doesn't have to run `explain` separately to decide whether a flag is worth acting on.
110
+ A pattern earns a place in the catalog only if it shows up constantly in AI writing and rarely in careful human writing. Passive voice, weak adverbs, wordiness, clichés a person reaches for too: they belong in `proselint` or `write-good`, not here. sloplint hunts the tells of a language model, so an agent can act on a note instead of second-guessing it.
88
111
 
89
112
  ## Commands
90
113
 
@@ -98,14 +121,15 @@ explain ID print one rule's message, rationale, and a bad/ok example
98
121
  version print the sloplint version
99
122
  ```
100
123
 
101
- `check` takes files as arguments, or `-` (or nothing) to read stdin, and these options:
124
+ `check` takes paths; `-`, or nothing, reads stdin. The options:
102
125
 
103
- - `--markdown` skips fenced code, inline code, HTML comments, and URLs before scanning. Off by default so it never silently eats prose.
104
- - `--select IDS` runs only these rules. Accepts comma-separated rule ids or category names.
126
+ - `--markdown` replaces fenced code, inline code, HTML comments, and URLs with same-length whitespace before scanning, so line and column stay correct. Without it, sloplint treats the file as prose and flags text inside your code fences. Off by default, so it never silently eats prose.
127
+ - `--select IDS` runs only these rules. Comma-separated rule ids or category names.
105
128
  - `--ignore IDS` skips these rules. Same id-or-category form.
106
- - `--strict` runs every rule, including the five that are off by default. `--ignore` still applies on top.
129
+ - `--strict` runs every rule, including the low-confidence ones that are off by default. Their notes are places to look, not findings. `--ignore` still applies.
130
+ - `--judge` also runs the judge rules, which need the `sloplint-judge` gem and a key: see [The judge](#the-judge-the-tells-a-regex-cannot-reach).
107
131
 
108
- `explain` is the command an agent calls to decide whether a flag is worth acting on:
132
+ An agent calls `explain` to decide whether a note is worth acting on:
109
133
 
110
134
  ```
111
135
  $ sloplint explain no-x-no-y
@@ -120,73 +144,43 @@ Flags: No fluff, no filler, no jargon.
120
144
  Does not: No parking on Sundays.
121
145
  ```
122
146
 
123
- ### `--judge`
147
+ ## The judge: the tells a regex cannot reach
124
148
 
125
- `sloplint check --judge` adds the rules of [sloplint-judge](#sloplint-judge) to the run, questions put to a model rather than regexes, and merges the notes into the same array in document order. It needs the sloplint-judge gem and an API key; the section below covers both.
149
+ Everything above is sloplint's 83 **regex rules**: patterns matched against the text, offline, in milliseconds, for nothing. Some tells have no pattern to match. A paragraph that names nothing a reader could check, a sentence that tells its reader what they already know: catching those takes something that can read.
126
150
 
127
- ## The note
151
+ That is the judge, a second catalog of 21 **judge rules** which are questions put to a model rather than patterns. It ships as a companion gem, it turns on with `--judge`, and it needs an API key. Both catalogs write the same notes into the same JSON, so whatever already reads sloplint's output reads the judge's without a change.
128
152
 
129
- One match is one note. JSON output is an array of these, or an object keyed by path when more than one file is scanned. Under `--judge` that array or object sits under a `notes` key next to a `judge` key with the backend name, request count and token counts (see [sloplint-judge](#sloplint-judge)). The schema is the contract:
153
+ ### Install it and get a key
130
154
 
131
- ```json
132
- {
133
- "path": "draft.md",
134
- "line": 12,
135
- "column": 5,
136
- "severity": "warning",
137
- "confidence": "high",
138
- "rule": "no-x-no-y",
139
- "category": "cadence",
140
- "message": "\"No X, no Y\" chain (3 items) reads as AI cadence.",
141
- "excerpt": "No fluff, no filler, no jargon",
142
- "context": "The report was blunt. [No fluff, no filler, no jargon]. Nothing held back at all.",
143
- "count": 3,
144
- "rationale": "Asyndetic negation chains are a signature model cadence, near-absent from human prose at any length. A careful writer occasionally stacks two (and, rarely, more), but a model reaches for the pattern constantly.",
145
- "suggestion": "Cut the chain or make it one plain sentence."
146
- }
147
- ```
148
-
149
- `severity` is what the construct costs the prose; `confidence` is how likely the match is a false positive. The two are separate, so a cheap tell we are sure about and an expensive one we are guessing at no longer collapse into the same word. `line` and `column` are 1-indexed and point at the start of the match. `excerpt` is the bare match; `context` is the same match bracketed inside about 40 characters of surrounding prose, which is what you want when the match is a single word or a lone em dash. A match already 40 characters long carries its own context, so `context` returns it alone rather than padding it further. `count` appears only when the rule tallies items (a "no X, no Y" chain, a "did not, did not" chain). `rationale` is why the pattern is a tell — the same text `sloplint explain` prints — so an agent deciding whether a flag is worth acting on doesn't have to run `explain` separately to find out. `suggestion` is a short fix hint.
150
-
151
- ## Exit codes
152
-
153
- Four codes carry the contract. A crash exits nonzero on its own.
154
-
155
- | code | meaning |
156
- |------|---------|
157
- | 0 | ran, no notes |
158
- | 1 | ran, notes found |
159
- | 2 | bad arguments or usage error |
160
- | 3 | `--judge` only: the model could not be reached, no notes written |
155
+ `gem install sloplint-judge` adds the rules; they need a key for TypeSafe's API, which the regex rules never do. Jev, the model the judge asks, is in early access behind a waitlist: sign up at [typesafe.ai](https://typesafe.ai), and once you are through, issue a key at [console.typesafe.ai](https://console.typesafe.ai/settings/keys). TypeSafe meters input tokens only, $42 per billion, so a 2,000-word document costs well under a cent.
161
156
 
162
- An unknown id or category in `--select`/`--ignore` is a usage error (exit 2, naming the id) rather than a silent no-op, so a typo can't masquerade as a clean scan. Input that is empty or only whitespace is exit 2 for the same reason: a pipe that delivered nothing must not read as a clean draft. Only when every source is empty — one empty file among several named ones is taken as deliberate.
157
+ Put the key in one of two places. The keychain, which `key set` writes and the judge reads by default:
163
158
 
164
- ## sloplint-judge
165
-
166
- A second gem in this repository, for the tells a regex cannot see. Its rules are questions put to a System One model (Jev, from TypeSafe) about one paragraph or one sentence at a time: does this paragraph end on a summary, a moral or a hope, does this sentence tell the stated reader anything they did not know, does it name anything a reader could check. The answers come back as sloplint notes, same fields, same JSON, same exit codes, so anything that already reads sloplint's output reads the judge's without change.
167
-
168
- One thing is different from the rest of sloplint: the judge sends your text to an API. sloplint on its own never leaves the machine. Every paragraph the judge examines goes to `api.typesafe.ai` over HTTPS, and nothing goes anywhere until you set a key, so the plain `sloplint check` stays offline whether or not the judge is installed.
159
+ ```bash
160
+ sloplint-judge key set # the keychain tool prompts, with echo off
161
+ ```
169
162
 
170
- ### Install
163
+ Or the environment, which beats the keychain:
171
164
 
172
165
  ```bash
173
- gem install sloplint sloplint-judge
174
- sloplint-judge key set # stores your TypeSafe API key in the OS keychain; it prompts for it
166
+ export TYPESAFE_API_KEY=...
175
167
  ```
176
168
 
177
- `key set` hands your terminal to the keychain tool (`security` on macOS, `secret-tool` from libsecret on Linux), which asks for the key with echo off, so the key is never on a command line, in shell history or in a dotfile. Setting `TYPESAFE_API_KEY` in the environment works too and takes precedence. One thing the keychain does not do: it keeps the key out of the agent's environment, not out of your account, since any process running as you can read the item back. `sloplint-judge status` says whether a key was found and where, without printing it, and `sloplint-judge key unset` removes the item.
169
+ The keychain is for a workstation. On a server, use the environment, or whatever secret manager fills the environment.
178
170
 
179
- Requires Ruby 3.3+ and sloplint 0.9 or later. The judge is not a plugin of its own: the Claude Code plugin at the root of this repository already carries it, and the `/sloplint:check` skill asks before it runs the judge. A key in the environment makes the judge possible; it does not make it run. The skill puts the question once per conversation, says what leaves the machine and what it costs, and stays offline unless the answer is yes or the request already asked for the judge.
171
+ `sloplint-judge status` says whether it found a key and where, without printing it, and `key unset` removes the keychain item. [docs/JUDGE.md](docs/JUDGE.md#where-the-key-lives) has the rest, including what the keychain protects you from and what it doesn't.
180
172
 
181
- ### Run
173
+ A key makes the judge possible; it does not make the judge run. In Claude Code and Cowork the plugin ships with the judge, and the `/sloplint:check` skill asks once per conversation before it runs the judge. It names what leaves the machine and what the run costs, and it stays offline without a yes. On the command line, `--judge` is consent.
182
174
 
183
- The one command to know, and the one an agent should use:
175
+ ### Turn it on
176
+
177
+ One flag adds the judge rules to the same run:
184
178
 
185
179
  ```bash
186
- sloplint check --judge --markdown -o json draft.md
180
+ cat draft.md | sloplint check --judge --markdown -o json -
187
181
  ```
188
182
 
189
- That runs both catalogs and merges the notes in document order. Because the judge spent money, the JSON says how much: the notes sit under `notes` and a `judge` object carries the backend, the number of requests, the token counts the backend reported and the cost in dollars. The same figures go to stderr in one line for the human formats.
183
+ The notes merge into one array in document order, so nothing downstream has to know which catalog found what. Because the judge costs money, the run says how much: the notes move under a `notes` key and a `judge` key carries the backend, the request count, tokens and dollars. The same figures go to stderr in the human output.
190
184
 
191
185
  ```json
192
186
  {
@@ -195,9 +189,19 @@ That runs both catalogs and merges the notes in document order. Because the judg
195
189
  }
196
190
  ```
197
191
 
198
- Without the sloplint-judge gem it exits 2 and says to install it. Without a key it exits 2 and says which variable to set. If the model cannot be reached, or answers in a shape the judge does not understand, it exits 3 and writes no notes at all, the regex ones included, so a partial run can never pass as a clean one.
192
+ `--judge` is the only flag that sends your text off the machine. Installing the judge gem does not opt you in; without the flag, nothing leaves.
193
+
194
+ ### Options, failures, and the second executable
195
+
196
+ `--judge` adds one option of its own:
199
197
 
200
- The gem also puts a `sloplint-judge` executable on your path for the judge on its own:
198
+ - `--register TEXT` says who the reader is. The judge asks every question on that reader's behalf, so a rule like `no-news` flags a sentence *that* reader already knows rather than one anybody would know. The default is "the reader this document is written for", which leaves the model to infer the audience from the text. Name the reader when you know it: `--register "a developer deciding whether to install this tool, reading its README"` scores a README against the person it is written for.
199
+
200
+ `--strict` does more under `--judge`: on top of the regex rules that are off by default, it runs the judge rules that are off by default, asks the sentence questions of every sentence rather than only the flagged paragraphs, and keeps answers the model was unsure of, which come through at `low`: places to look, not findings.
201
+
202
+ Without the gem, `--judge` exits 2 and names the install command. Without a key, it exits 2 and names the variable to set. If the model cannot be reached, or answers in a shape the judge does not understand, it exits 3 and writes nothing, not even the regex notes, so a partial run can never pass as a clean one.
203
+
204
+ The judge gem also puts a `sloplint-judge` executable on your path, for running the judge rules alone, managing the key, and comparing two passages:
201
205
 
202
206
  ```
203
207
  sloplint-judge [-o full|json] [--register TEXT] [--backend NAME] [command] [args]
@@ -212,62 +216,91 @@ key unset remove it from the OS keychain
212
216
  version print the sloplint-judge version
213
217
  ```
214
218
 
215
- `check` takes `--markdown`, `--select`, `--ignore` and `--strict` with the same meanings as sloplint's. `--strict` runs the three rules that are off by default, runs the sentence rules on every sentence, rather than only in the paragraphs a paragraph rule flagged or skipped as too short, and keeps the notes the model was not confident about. `--register TEXT` says who the reader is; the default is an engineer on the team reading a design document, and every question is asked on that reader's behalf, so a rule such as `no-news` flags a sentence that reader already knows rather than one anybody would.
216
-
217
- ### The rules
219
+ The backend, the model name, the endpoint and the concurrency all come from the environment. [docs/JUDGE.md](docs/JUDGE.md) has the table of variables, the design, the calibration that decides which rules ship, and how to add a backend.
218
220
 
219
- Fourteen rules in two categories. `sloplint-judge rules` lists them and `sloplint-judge explain ID` prints the question the model is asked, the answer that flags, and the fixtures. The bar is a little different from the regex catalog's: a judge rule ships when a reader shown the flagged unit agrees it should go, whoever wrote it, and how sharply it separates model prose from human prose sets its severity. So `throat-clearing` is `info`, not gone: human abstracts open by announcing the paper, and it is dead weight either way.
221
+ ## The note
220
222
 
221
- - **paragraph** (6): `particulars`, a paragraph that names nothing a reader could check; `wrap-up`, a paragraph that ends on a summary, a moral or a hope; `throat-clearing`, a paragraph that opens by announcing its topic; `self-narration`, a paragraph that signposts the document instead of saying something; `promotional`, a paragraph that praises its subject and measures nothing; `same-weight`, a paragraph that states its guesses and opinions as flatly as its measurements. `same-weight` is off by default; name it in `--select` or pass `--strict`.
222
- - **sentence** (8): `stock-figure`, a stock figure of speech; `no-news`, a sentence that explains what the stated reader already knows; `names-nothing`, a sentence with no specific noun in it; `ends-on-verdict`, a sentence that ends by grading the fact it just stated; `trailing-gloss`, a sentence that ends on an -ing clause drawing its own moral; `unnamed-authority`, a claim handed to experts, studies or many; `stated-stakes`, a sentence that says something matters and not why; `matched-shape`, a pair or triple built to a rhythm rather than to the content. `stated-stakes` and `matched-shape` are off by default; name them in `--select` or pass `--strict`.
223
+ One match is one note. JSON output is an array of notes, or an object keyed by path when you scan more than one file. Under `--judge` it moves beneath a `notes` key, beside a `judge` key with the backend name, request count and token counts (see [`--judge`](#--judge)). The schema is the contract:
223
224
 
224
- Each note's `confidence` is the lower of the rule's own ceiling and how sure the model was of that answer. A note the model was unsure about is dropped unless you pass `--strict`, the same way sloplint drops its low-confidence rules.
225
+ ```json
226
+ {
227
+ "path": "draft.md",
228
+ "line": 12,
229
+ "column": 5,
230
+ "severity": "warning",
231
+ "confidence": "high",
232
+ "rule": "no-x-no-y",
233
+ "category": "cadence",
234
+ "message": "\"No X, no Y\" chain (3 items) reads as AI cadence.",
235
+ "excerpt": "No fluff, no filler, no jargon",
236
+ "context": "The report was blunt. [No fluff, no filler, no jargon]. Nothing held back at all.",
237
+ "count": 3,
238
+ "rationale": "Asyndetic negation chains are a signature model cadence, near-absent from human prose at any length. A careful writer occasionally stacks two (and, rarely, more), but a model reaches for the pattern constantly.",
239
+ "suggestion": "Cut the chain or make it one plain sentence."
240
+ }
241
+ ```
225
242
 
226
- ### Cost and configuration
243
+ `severity` and `confidence` are the two ratings [the catalog](#the-rule-catalog) explains. `line` and `column` are 1-indexed and point at the start of the match. `excerpt` is the bare match; `context` is the same match bracketed inside about 40 characters of surrounding prose, useful when the match is a single word or a lone em dash. A match already 40 characters long carries its own context, so `context` returns it alone. `count` appears only when the rule tallies items (a `no X, no Y` chain, a `did not, did not` chain). `rationale` is why the pattern is a tell, the same text `sloplint explain` prints. `suggestion` is a one-line fix.
227
244
 
228
- One request per paragraph carries the paragraph questions, and one request per examined sentence carries the sentence questions, about eight in parallel. A 2,000-word document runs in a few seconds. Every run reports requests, tokens and cost, in the JSON under `judge` and on stderr. Jev returns token counts and no price, so the dollar figure is computed from TypeSafe's public price: $42 per billion input tokens, and output tokens are free. At that rate a 2,000-word document costs well under a cent.
245
+ ## Exit codes
229
246
 
230
- Configuration is from the environment, plus the OS keychain for the key:
247
+ The exit code is the contract. A crash exits nonzero outside these four.
231
248
 
232
- | variable | default | meaning |
233
- |---|---|---|
234
- | `TYPESAFE_API_KEY` | none, required | bearer key sent with every request; from the environment, else the keychain item `key set` wrote |
235
- | `SYSTEMONE_MODEL` | `jev-latest` | model name |
236
- | `SYSTEMONE_URL` | `https://api.typesafe.ai/v1/systemone` | endpoint; must be `https` on a `typesafe.ai` host |
237
- | `SLOPLINT_JUDGE_BACKEND` | `jev` | which adapter to use |
238
- | `SLOPLINT_JUDGE_CONCURRENCY` | `8` | parallel requests |
249
+ | code | meaning |
250
+ |------|---------|
251
+ | 0 | ran, no notes |
252
+ | 1 | ran, notes found |
253
+ | 2 | bad arguments or usage error |
254
+ | 3 | `--judge` only: the model could not be reached, no notes written |
239
255
 
240
- The design, the calibration that decides which rules ship, and how to add a backend are in [docs/JUDGE.md](docs/JUDGE.md).
256
+ An unknown id or category in `--select`/`--ignore` is a usage error (exit 2, naming the id) rather than a silent no-op, so a typo can't masquerade as a clean scan. Empty or whitespace-only input is exit 2 for the same reason: a pipe that delivered nothing must not read as a clean draft. That applies only when every source is empty; one empty file among several is deliberate, and sloplint scans the rest.
241
257
 
242
258
  ## The rule catalog
243
259
 
244
- 82 rules across nine categories, each named for the rhetorical move the construct makes. `sloplint rules` prints them; `sloplint rules --json` gives an agent the enumerable form.
260
+ The [judge rules](#the-judge-rules) follow these.
261
+
262
+ 85 rules across nine categories, each named for the rhetorical move the construct makes. `sloplint rules` prints them; `sloplint rules --json` gives an agent the enumerable form.
245
263
 
246
- - **self-rating** (16) the writer grades their own prose or claim: `clean-x`, `clean-count`, `cleanest-x`, `cleanly`, `honest-x`, `most-honest-x`, `honestly` (the honesty family, built the same way as the four `clean` rules), `worth-naming`, `worth-saying-plainly`, `earns-its-place`, `does-a-lot-of-work`, `exact-exactly`, `genuinely` (off by default), `the-punchline-is`, `announced-takeaway`, `cataphoric-teaser` ("Here's what nobody tells you", "the part most people get wrong").
247
- - **closer** (12) closes by restating or announcing the point: `thats-the-whole`, `is-the-whole-x` (the same closer on any subject: "Consistency is the real test.", at `medium` confidence), `is-the-entire`, `the-entire-is`, `thats-how-x`, `thats-the-tension`, `right-up-until`, `and-nothing-else` (the trailing "…, and nothing else"), `nothing-else-frag`, `bare-equative` ("The lesson is the handoff.", at `medium` confidence), `trailing-restatement` (the "…, which means …" tail that says the sentence again, off by default), `and-what-it-should` (the elliptical tail: "…, and what it should.").
248
- - **cadence** (18) rhythm: repetition, parallelism, and the long-then-short kicker: `no-x-no-y`, `no-x-no-y-frag`, `did-not-x-did-not-y`, `one-x-one-y` ("one reviewer, one queue, one deadline"), `from-x-to-y-chain` ("from guessing to measuring, from hoping to knowing"), `same-determiner-chain` (any other repeated determiner, at `medium` confidence), `real-x-real-y`, `epistrophe` (off by default), `phrase-echo` (off by default), `is-is` (doubled copula), `the-x-is-the-x` ("the problem with A is the problem with B"), `rule-of-three` (off by default), `everyone-nobody` (the comma-spliced antithesis: "Everyone wants the dashboard, nobody maintains it."), `short-run` (three sentences of thirty characters or fewer in a row, at `medium` confidence), `mic-drop-closer` (the short quantifier-led sentence that ends a paragraph after a long one, at `medium` confidence), `bare-auxiliary-closer` (the same shape, but the closer's verb is elided down to a bare auxiliary: "The agent did.", at `medium` confidence), `np-fragment-and` (the verbless "A named owner and a quarterly review.", at `medium` confidence), `punch-sentence` (the verbless beat of three words or fewer between two long sentences, "Not anymore.", at `medium` confidence).
249
- - **puffery** (8) inflates the subject: `puffery-words` (vibrant, nestled, groundbreaking, in the heart of), `rich-tapestry`, `vital-role`, `stands-serves-as`, `underscores-highlights`, `impact-noun-vague` ("a significant impact", "make an impact"), `trailing-significance-participle` (the "…, showcasing its importance" clause), `abstract-lives-in` ("the value sits in the follow-up", at `medium` confidence).
250
- - **false-correction** (8) corrects a reading nobody offered: `not-just-x-but-y`, `not-x-but-y` (the bare corrective), `not-by-x-but-by-y` ("not by luck, but by design"), `isnt-x-its-y` (the same corrective split across two clauses: "It isn't the tool. It's the habit."), `question-isnt` (the corrective frame in interrogative dress), `less-about-more-about`, `actually-not-x`, `dont-verb-it`.
251
- - **false-concession** (7) performs balance or candour and gives nothing up: `two-things-true`, `none-of-this-is-to-say`, `is-real-and-not`, `not-nothing`, `vague-attribution` ("some critics argue", "it is widely regarded"), `if-im-being-honest` (the candor preamble, from slopwash.com's "false intimacy"), `and-thats-fine`.
252
- - **reader-address** (6) instructs or flatters the reader: `you-already-know`, `sit-with-that`, `hold-onto-that`, `notice-what`, `notice-what-there`, `quip-question` (the verbless "No invite?", at `medium` confidence).
253
- - **borrowed-metaphor** (5) an engineering term applied to an argument: `load-bearing`, `failure-mode-here`, `intersection-of`, `impact-verb` ("the outage impacted four thousand accounts"), `impact-noun-bare` ("the impact of X", at `medium` confidence because research prose uses it straight).
264
+ - **self-rating** (16) the writer grades their own prose or claim: `clean-x`, `clean-count`, `cleanest-x`, `cleanly`, `honest-x`, `most-honest-x`, `honestly` (the honesty family, built the same way as the four `clean` rules), `worth-naming`, `worth-saying-plainly`, `earns-its-place`, `does-a-lot-of-work`, `exact-exactly`, `genuinely` (off by default), `the-punchline-is`, `announced-takeaway`, `cataphoric-teaser` (`Here's what nobody tells you`, `the part most people get wrong`).
265
+ - **closer** (12) closes by restating or announcing the point: `thats-the-whole`, `is-the-whole-x` (the same closer on any subject: `Consistency is the real test.`, at `medium` confidence), `is-the-entire`, `the-entire-is`, `thats-how-x`, `thats-the-tension`, `right-up-until`, `and-nothing-else` (the trailing `…, and nothing else`), `nothing-else-frag`, `bare-equative` (`The lesson is the handoff.`, at `medium` confidence), `trailing-restatement` (the `…, which means …` tail that says the sentence again, off by default), `and-what-it-should` (the elliptical tail: `…, and what it should.`).
266
+ - **cadence** (20) rhythm: repetition, parallelism, and the long-then-short kicker: `no-x-no-y`, `no-x-no-y-frag`, `did-not-x-did-not-y`, `one-x-one-y` (`one reviewer, one queue, one deadline`), `from-x-to-y-chain` (`from guessing to measuring, from hoping to knowing`), `same-determiner-chain` (any other repeated determiner, at `medium` confidence), `real-x-real-y`, `epistrophe` (off by default), `phrase-echo` (off by default), `is-is` (doubled copula), `the-x-is-the-x` (`the problem with A is the problem with B`), `the-x-is-not-the-x` (any noun split in two by a negated copula: `the job you applied for is not the job you will do`, at `medium` confidence), `rule-of-three` (off by default), `everyone-nobody` (the comma-spliced antithesis: `Everyone wants the dashboard, nobody maintains it.`), `short-run` (three sentences of thirty characters or fewer in a row, at `medium` confidence), `mic-drop-closer` (the short quantifier-led sentence that ends a paragraph after a long one, at `medium` confidence), `bare-auxiliary-closer` (the same shape, but the closer's verb is elided down to a bare auxiliary: `The agent did.`, at `medium` confidence), `np-fragment-and` (the verbless `A named owner and a quarterly review.`, at `medium` confidence), `punch-sentence` (the verbless beat of three words or fewer between two long sentences, `Not anymore.`, at `medium` confidence), `negative-subject` (a negative pronoun as the subject of a clause, dressed up with a paired clause or its own negated relative clause: `nothing gets merged that does not get reviewed.`, at `medium` confidence).
267
+ - **puffery** (8) inflates the subject: `puffery-words` (`vibrant`, `nestled`, `groundbreaking`, `in the heart of`), `rich-tapestry`, `vital-role`, `stands-serves-as`, `underscores-highlights`, `impact-noun-vague` (`a significant impact`, `make an impact`), `trailing-significance-participle` (the `…, showcasing its importance` clause), `abstract-lives-in` (`the value sits in the follow-up`, at `medium` confidence).
268
+ - **false-correction** (9) corrects a reading nobody offered: `not-just-x-but-y`, `not-x-but-y` (the bare corrective), `not-by-x-but-by-y` (`not by luck, but by design`), `isnt-x-its-y` (the same corrective split across two clauses: `It isn't the tool. It's the habit.`), `x-not-y` (the same corrective turned round: `That's a gap, not a failure.`), `question-isnt` (the corrective frame in interrogative dress), `less-about-more-about`, `actually-not-x`, `dont-verb-it`.
269
+ - **false-concession** (7) performs balance or candour and gives nothing up: `two-things-true`, `none-of-this-is-to-say`, `is-real-and-not`, `not-nothing`, `vague-attribution` (`some critics argue`, `it is widely regarded`), `if-im-being-honest` (the candor preamble, from slopwash.com's `false intimacy`), `and-thats-fine`.
270
+ - **reader-address** (6) instructs or flatters the reader: `you-already-know`, `sit-with-that`, `hold-onto-that`, `notice-what`, `notice-what-there`, `quip-question` (the verbless `No invite?`, at `medium` confidence).
271
+ - **borrowed-metaphor** (5) an engineering term applied to an argument: `load-bearing`, `failure-mode-here`, `intersection-of`, `impact-verb` (`the outage impacted four thousand accounts`), `impact-noun-bare` (`the impact of X`, at `medium` confidence because research prose uses it straight).
254
272
  - **punctuation** (2) the mark itself: `em-dash` (any em dash), `em-dash-overuse` (three or more in one paragraph).
255
273
 
256
- Every rule carries two ratings, and they answer different questions. **Severity** is what the construct costs the prose: `error` when the sentence is worse for it in any register (`rich-tapestry`, `puffery-words`, `vague-attribution`), `warning` when it dates the draft as model output but the sentence still says something, `info` when it is mostly harmless and worth knowing (`em-dash`). **Confidence** is how likely the match is a false positive: `high` when almost every hit is the real tell, `medium` when ordinary prose produces the same shape often enough that an agent should read the rationale first, `low` when the pattern cannot tell the tell from the ordinary use at all.
274
+ Every rule carries two ratings. **Severity** is what the tell costs the prose: `error` when the sentence is worse for it in any register (`rich-tapestry`, `puffery-words`, `vague-attribution`), `warning` when it dates the draft as model output but the sentence still says something, `info` when it is harmless but worth knowing about (`em-dash`). **Confidence** is how likely the match is a true hit: `high` when the pattern almost never misfires, `medium` when ordinary prose produces the same shape often enough that an agent should read the rationale before acting, `low` when the pattern cannot separate the tell from ordinary use.
275
+
276
+ The two move independently: `rich-tapestry`, `thats-the-whole` and `cleanest-x` are `error` wherever they appear, whatever my confidence in the match.
277
+
278
+ Some tells come in a confident form and an ambiguous one, and those ship as a pair rather than as one rule stretched over both. `no-x-no-y` wants the comma chain a writer clearly wrote; `no-x-no-y-frag` takes the same cadence built from sentence fragments, which ordinary prose also produces, so it ships at `medium` confidence. Same with `not-just-x-but-y` and `not-x-but-y`, and with `notice-what-there` and `notice-what`. The quiet half still deserves a note, since an agent that reads the rationale can judge for itself, but it should not carry the same weight as the half I'm sure about. `and-nothing-else` and `nothing-else-frag` are also a pair, and both sit at `high`. The fragment half carries a capital letter and a whole-sentence requirement which the comma half lacks, so it is the narrower of the two rather than the quieter one.
279
+
280
+ The `low` rules are **off by default**, because each one matches a shape ordinary prose produces on its own:
281
+
282
+ - `rule-of-three` flags a comma series of single words closing a sentence, which writers of every kind produce constantly. The narrowings are that the last two items must be single words, so three phrases do not match, and that the first word cannot follow a comma, so the tail of a longer list does not match either. A series of three words is still often an ordinary list, and no regex sees the difference.
283
+ - `genuinely` flags every occurrence of the word. As an intensifier it rates the writer's sincerity, but it still does real work when it draws a contrast, and nothing in the sentence separates the two.
284
+ - `epistrophe` flags two clauses ending on the same phrase: a named figure careful writers use on purpose, and one ordinary prose produces by reusing a phrase.
285
+ - `trailing-restatement` flags the "…, which means …" tail and the participles that hang a result off the sentence ("…, making it easier"). The connective is visible and the restatement is not, so a real consequence trips it too.
286
+ - `phrase-echo` flags a three-word phrase that comes back within a few hundred words. A term of art comes back because it must, and the pattern cannot tell one from a phrase the writer coined.
287
+
288
+ They run when you name them (`sloplint check --select rule-of-three -`), or when you pass `--strict`. Naming a category in `--select` turns on that category's other rules only; naming a rule's id runs it regardless. `--strict` on its own runs the whole catalog, but alongside `--select` it only widens the named categories to include their low-confidence rules. `sloplint rules --json` lists every rule's `severity`, `confidence` and `rationale`, so an agent can tell which rules are off by default without reading this file.
257
289
 
258
- The two used to be one word, so a cheap tell we were sure about and an expensive one we were guessing at both came out as `warning`. They no longer do. `error` is in use: the puffery family, the tautology closers, and the self-ranking superlatives all cost the sentence something wherever they appear, however sure or unsure we are of the match.
290
+ ### The judge rules
259
291
 
260
- Some tells come in a confident form and an ambiguous one, and those ship as a pair rather than as one rule stretched over both. `no-x-no-y` wants the comma chain a writer clearly authored; `no-x-no-y-frag` takes the same cadence built from sentence fragments, which ordinary prose also produces, so it ships at `medium` confidence. Same with `not-just-x-but-y` and `not-x-but-y`, and with `notice-what-there` and `notice-what`. The quiet half is still worth flagging — an agent that reads the rationale can judge — but it should not carry the same weight as the half we're sure about. `and-nothing-else` and `nothing-else-frag` are a pair of the same shape and both sit at `high`, because the fragment half carries a capital letter and a whole-sentence requirement that the comma half has no equivalent of, so it is the narrower of the two rather than the quieter one.
292
+ Twenty-one rules in two categories. They run only under `--judge`, because each one costs a request to a model; `sloplint-judge rules` lists them and `sloplint-judge explain ID` prints the question it asks the model, the answer that flags, and the fixtures. The bar differs from the regex catalog's: a judge rule ships when a reader, shown the flagged unit, agrees it should go, whoever wrote it. Severity comes from how sharply the rule separates model prose from human prose. So `throat-clearing` is `info`, not gone: human abstracts open by announcing the paper, and the announcement is dead weight either way.
261
293
 
262
- The five `low` rules are the ones that run **off by default**. They run when you name them — `sloplint check --select rule-of-three -` — or when you pass `--strict`, which runs the whole catalog when you give it no `--select`. `rule-of-three` flags three single words in a comma series closing a sentence, which humans do all the time; the closing two items must be single words, so a triad of phrases does not match, because a regex cannot tell one from an ordinary list. `genuinely` flags every occurrence of the word; as an intensifier it rates the writer's sincerity, but it still does real work when it draws a contrast, and nothing in the sentence separates the two. `epistrophe` flags two clauses ending on the same phrase, a named figure that careful writers use on purpose and that, on Hacker News, is mostly plain phrase reuse. `trailing-restatement` flags the "…, which means …" tail and the participles that hang a result off the sentence ("…, making it easier"); the connective is visible and the restatement is not, so a real consequence flags the same way. `phrase-echo` flags a three-word phrase that comes back within a few hundred words; a term of art comes back because it must, and the pattern cannot tell one from a phrase the writer coined. Naming a category in `--select` only turns on that category's non-low rules; naming the rule's own id runs it regardless. `--strict` on its own runs the whole catalog, but alongside `--select` it only widens the named categories to include their low-confidence members. `sloplint rules --json` lists every rule's `severity`, `confidence` and `rationale`, so an agent can tell which rules are off by default without reading this file.
294
+ - **paragraph** (7): `particulars`, names nothing a reader could check; `wrap-up`, ends on a summary, a moral or a hope; `throat-clearing`, opens by announcing its topic; `self-narration`, signposts the document instead of advancing it; `promotional`, praises its subject and measures nothing; `same-weight`, states its guesses as flatly as its measurements; `set-piece`, a sentence in it makes its point through a reversal, mirror, slogan or maxim.
295
+ - **sentence** (14): `stock-figure`, a stock figure of speech; `no-news`, explains what the reader you declared already knows; `names-nothing`, names nothing specific, and nothing in its paragraph makes its claim checkable; `ends-on-verdict`, ends by grading the fact it just stated; `trailing-gloss`, ends on an -ing clause drawing its own moral; `unnamed-authority`, hands a claim to experts, studies, "many people" or what is "known"; `stated-stakes`, says something matters without saying why; `matched-shape`, a pair or triple built to a rhythm rather than to content; `mirrored-opposites`, opposite words that make two separate claims read as a contrast; `positive-form`, says what something is not where it could say what it is; `name-the-thing`, points at something by position, stand-in or allusion instead of naming it; `maxim`, states a general saying where the fact about this case belongs; `dressed-pair`, one fact dressed as a pair, by an echoed verb or a "both" handed a verdict; `device-before-claim`, makes its claim through a mirror, a riddle, a held-back answer, a coined figure or a maxim instead of stating it plainly.
263
296
 
264
- ### Markdown handling
297
+ `same-weight`, `stated-stakes`, `matched-shape`, `mirrored-opposites`, `positive-form`, `name-the-thing` and `dressed-pair` are off by default; name them in `--select` or pass `--strict`.
265
298
 
266
- `--markdown` replaces fenced code, inline code, HTML comments, and URLs with same-length whitespace before scanning, so line and column stay correct. Without it, sloplint treats the whole file as prose and will flag text inside your code fences. Pass `--markdown` whenever the input is Markdown.
299
+ Each note's `confidence` is the lower of two numbers: the rule's ceiling, and the model's confidence in that answer. The judge drops a note the model was unsure of unless you pass `--strict`, the same way sloplint drops its low-confidence rules.
267
300
 
268
301
  ## Adding a rule
269
302
 
270
- Rules are data, not code. Each is a `Data.define` object in `lib/sloplint/rules.rb` with a regex, a message, a suggestion, and one bad and one ok fixture:
303
+ Rules are data, not code. Each is a `Rule.new` entry in `lib/sloplint/rules.rb`:
271
304
 
272
305
  ```ruby
273
306
  Rule.new(
@@ -286,21 +319,21 @@ Rule.new(
286
319
  )
287
320
  ```
288
321
 
289
- `rationale` is not decoration. `sloplint explain` prints it, and that is what an agent reads to decide whether a flag is worth acting on — so it should say what the pattern is, how it was probed, and where it's known to be weak.
322
+ Write the `rationale` for the agent. `sloplint explain` prints it, and an agent reads it to decide whether a note is worth acting on, so say what the pattern catches and where it's weak.
290
323
 
291
- Adding a rule is one entry plus its fixtures. `rules_spec.rb` iterates the catalog and asserts every `examples_bad` produces at least one note and every `examples_ok` produces none, so a rule without fixtures, or one whose regex is too greedy, fails the suite.
324
+ Adding a rule is one entry plus its fixtures. `rules_spec.rb` runs every rule against its fixtures: each `examples_bad` must produce a note, each `examples_ok` none. A rule without fixtures, or one whose regex is too greedy, fails the suite.
292
325
 
293
326
  ## Development
294
327
 
295
- No `Gemfile` -- install `rspec` and `rake` yourself (`gem install rspec rake`), then:
328
+ There is no `Gemfile`; install `rspec` and `rake` yourself (`gem install rspec rake`), then:
296
329
 
297
330
  ```bash
298
331
  rake spec # or: rspec
299
332
  ```
300
333
 
301
- `rules_spec.rb` checks every rule against its fixtures. `cli_spec.rb` covers exit codes, stdin, JSON schema, `--select` and `--ignore`, and that `--markdown` skips code. A slop fixture in `spec/fixtures/` doubles as an integration check.
334
+ `cli_spec.rb` covers exit codes, stdin, JSON schema, `--select` and `--ignore`. It also checks that `--markdown` skips code. A slop fixture in `spec/fixtures/` doubles as an integration check.
302
335
 
303
- See [`docs/SPEC.md`](docs/SPEC.md) for the full design, including why this is a fresh tool rather than a proselint extension.
336
+ See [`docs/SPEC.md`](docs/SPEC.md) for the design, including why sloplint is a fresh tool rather than a proselint extension.
304
337
 
305
338
  ## Author
306
339
 
data/docs/SPEC.md CHANGED
@@ -146,7 +146,8 @@ check options:
146
146
  --markdown skip fenced/inline code spans, HTML comments, and URLs
147
147
  --select IDS only run these rules (comma-separated ids or categories)
148
148
  --ignore IDS skip these rules
149
- --strict run every rule, including the off-by-default ones
149
+ --strict run every rule, including the off-by-default ones;
150
+ their low-confidence notes are places to look, not findings
150
151
  ```
151
152
 
152
153
  `check` is the default command. A first argument that is not a command name is
@@ -310,7 +311,7 @@ The writer grades their own prose or claim.
310
311
  - `clean-x` — "a clean abstraction/distinction/framing", "clean line between"; `medium` confidence
311
312
  - `clean-count` — "two/three clean parts/buckets/categories…"; needs a partition noun
312
313
  - `cleanest-x` — "the cleanest framing/formulation", "cleanest way to put it"; noun list only
313
- - `cleanly` — "cleanly" into/onto/in two/in half — the partition frame; the preposition is the narrowing; the engineering idiom ("applies cleanly", "separated cleanly", "cleanly compiled") is a checkable fact and stays out, and the clause-final form is left out. `medium` confidence: the frame is not the sense, and separating "splits cleanly into two parts" from "retracted cleanly into the well" needs the subject
314
+ - `cleanly` — every "cleanly", by maintainer ruling; the frame-keyed versions (partition, contest result) each let the next frame through, and the engineering idiom ("applies cleanly", "exited cleanly") is flagged too. `high` confidence
314
315
  - `honest-x` — "an honest comparison", "the honest framing"; short noun list; "answer", "assessment", "account" excluded as ordinary; superlative yielded to the rule below
315
316
  - `most-honest-x` — "the most honest framing", "the most honest way to put it"; wider noun list than `honest-x`; no human nouns, so "the most honest person" stays out
316
317
  - `honestly` — a word, then "honestly", then a full stop or comma; terminal position required; discourse-marker slot guarded ("and/quite/but honestly,"); no animacy test
@@ -356,12 +357,15 @@ Rhythm: repetition, parallelism, and the long-then-short kicker.
356
357
  - `phrase-echo` — the same three words again within about 400 words; backreference in a lookahead, so the match is the first occurrence; each word 4+ characters and lowercase-led, one of them 6+ letters with nothing but letters, so function-word runs, contractions, proper nouns and Title Case headings are out; a repeat that opens on a quote mark, backtick, emphasis marker or hyphen is out; the gap crosses paragraph breaks but not a list item, a table row or 80+ non-word characters; off by default; `low` confidence
357
358
  - `is-is` — doubled copula: "what it is is …", "the thing is, is that …"; comma optional
358
359
  - `the-x-is-the-x` — "the X … is the X …": the same abstract head noun on both sides of the copula; backreference; closed list of heads that cannot name an object (key, cost, unit are out); the clause between is capped at 50 chars and may not hold a comma, semicolon or colon; the second head must be followed by a preposition, determiner, quantifier, pronoun, plural noun or punctuation, so compounds are out; "isn't" counts
360
+ - `the-x-is-not-the-x` — "the X … is not the X …": any head noun on both sides of a negated copula (is not, isn't, was not, were not); backreference; the clause between is capped at 50 chars and may not hold sentence punctuation, a comma, semicolon or colon; "of" after the second head and "the same X" are out, since both name the difference; the-x-is-the-x's abstract heads are skipped so each sentence is reported once; `medium` confidence
359
361
  - `rule-of-three` — three single-word comma items ending a sentence (heuristic; `low` confidence, off by default; runs under `--select` or `--strict` since it false-positives).
360
362
  - `everyone-nobody` — the comma-spliced antithesis on quantifier subjects: one clause opens on everyone/everybody, the other on nobody/no one/none or "one N", joined by a bare comma, the second closing the sentence ("Everyone wants the dashboard, nobody maintains it."). A conjunction, a period, or the same subject twice is not a hinge; "one of/by/per", a measure, a proper noun, "none of which" and "none louder than" are not second subjects; clauses are capped at eighty characters.
361
363
  - `short-run` — three consecutive sentences of thirty characters or fewer, each letter-led and closing on a full stop, no quotation marks or digits, no lone-letter labels (either case, though a possessive is not one) or abbreviations, starting at a real sentence boundary (never on a wrap continuation), crossing a hard wrap but not a paragraph break; `medium` confidence. A list marker may open a run but never sit inside one, so consecutive bullets are a list — the marker set covers glyphs, the literal "o" plain-text documents use as a bullet, and numbered and lettered items. Two whole-run exclusions keep document furniture out, each a property of the run rather than of any sentence in it: three single-word sentences in a row is a citation line ("Natl. Inst. Stand. Technol."), and three lowercase-led sentences in a row is transcribed speech ("we all get gas. we go to divert to Albany."). One single-word sentence is the archetypal kicker and stays, and a run that reaches a capital anywhere is prose, so identifier-initial writing ("npm was slow. git blame helped. We moved on.") is untouched. One is a question; a draft that repeats it is the tell.
362
364
  - `mic-drop-closer` — a sentence of 60+ characters, then a paragraph-final closer of two to eight words opening on a **quantifier** (Nothing, Most, None, Everything, Everyone, Nobody, Then, Neither, Both): "Nothing here needs a new login."; `medium` confidence. The bare demonstratives (That, This, It) were in the list and are out: procedural writing ends a step with one as a matter of course ("This completes the roughing operations."). A blank line or the end of the text must follow the closer; both sentences may be hard-wrapped; whitespace runs in the long sentence are capped so blanked Markdown cannot make it, and the long-sentence prefix is an atomic group so an unpunctuated stretch cannot send it into catastrophic backtracking. The note points at the closer. One means nothing; a draft where it repeats is the tell.
363
365
  - `bare-auxiliary-closer` — the same long-sentence-then-short-closer shape as `mic-drop-closer`, but the tell sits in the verb rather than the subject: the closer's verb phrase is elided down to a bare auxiliary with no object, "The agent did."; `medium` confidence. No subject list is needed — a one-to-three word subject runs straight into a bare `did/does/do/was/were/is/are/had/has/can/could/would/will/should/might/must` (contracted forms included) and a period, and the closer must be the last thing in the paragraph, same as `mic-drop-closer`, so a closing quotation mark after the period excludes quoted dialogue the same way `short-run` excludes it. A negative lookahead drops a closer that still holds "what", "that", "which", "who", "why" or "how", since those introduce a subordinate clause supplying its own complement rather than an elided one ("Nobody knew who did." asks who did it). Reuses `mic-drop-closer`'s long-sentence prefix rather than a second copy of it. One means nothing; a draft where it repeats is the tell.
364
- - `punch-sentence` — the same long-then-short shape in the middle of a paragraph, where the closer rules refuse it: after the shared sixty-character prefix, a verbless beat of one to three words closing on a full stop, then one or two spaces and a sentence of forty or more characters on the same paragraph ("…three nights running that week. Not anymore. The job now checks…"); `info`, `medium` confidence. The beat is one of two closed shapes: a negator (Not, No, Never, Nothing, None) followed by up to two lowercase words, or a single capitalised word of five letters or more ("Simple."). The stop before the beat may not close a capitalised word of one to four letters or a lone lowercase letter, so a title, an initial or a case citation ("Mrs. Cadaver.", "John F. Kennedy.", "Swift v. Tyson.") never yields a one-word sentence. Short clauses with a subject ("He agrees.", "Dawes refuses.") are how plot summaries and news briefs move and are not matched; a one-word imperative in procedural prose ("Drain.") is, at about one per 25,000 words of recipes. A run of short sentences is `short-run`'s, and a paragraph-final beat is `mic-drop-closer`'s or `bare-auxiliary-closer`'s.- `np-fragment-and` — a whole sentence made of two noun phrases and an "and", opening on A/An/One at a sentence start or after a list marker ("A named owner and a quarterly review."). One to three words a side, no auxiliary or modal anywhere (contractions included); a lexical verb is invisible, so "A car and a truck collided." flags, which is why it ships at `medium` confidence.
366
+ - `punch-sentence` — the same long-then-short shape in the middle of a paragraph, where the closer rules refuse it: after the shared sixty-character prefix, a verbless beat of one to three words closing on a full stop, then one or two spaces and a sentence of forty or more characters on the same paragraph ("…three nights running that week. Not anymore. The job now checks…"); `info`, `medium` confidence. The beat is one of two closed shapes: a negator (Not, No, Never, Nothing, None) followed by up to two lowercase words, or a single capitalised word of five letters or more ("Simple."). The stop before the beat may not close a capitalised word of one to four letters or a lone lowercase letter, so a title, an initial or a case citation ("Mrs. Cadaver.", "John F. Kennedy.", "Swift v. Tyson.") never yields a one-word sentence. Short clauses with a subject ("He agrees.", "Dawes refuses.") are how plot summaries and news briefs move and are not matched; a one-word imperative in procedural prose ("Drain.") is, at about one per 25,000 words of recipes. A run of short sentences is `short-run`'s, and a paragraph-final beat is `mic-drop-closer`'s or `bare-auxiliary-closer`'s.
367
+ - `np-fragment-and` — a whole sentence made of two noun phrases and an "and", opening on A/An/One at a sentence start or after a list marker ("A named owner and a quarterly review."). One to three words a side, no auxiliary or modal anywhere (contractions included); a lexical verb is invisible, so "A car and a truck collided." flags, which is why it ships at `medium` confidence.
368
+ - `negative-subject` — a negative pronoun (Nothing, Nobody, No one, None) as the subject of a clause, where the clause also carries one of two structural markers rather than stopping at a bare subject and verb ("Nothing happened.", "No one knows." are not matched; a regex cannot tell a lexical verb from any other word, so the narrowing comes from what surrounds the subject). A clause starts at the beginning of the text, after `.;:!?` or a line break, or after a coordinating conjunction (and, but, or, so, yet, nor) — the one addition to `actually-not-x`'s clause-start set, since a conjunction can open a second clause inside one sentence; the other frame stays off the conjunction start, since "and" more often joins two noun phrases in one clause than two clauses. Either frame's clause-start may also open on one or two markdown emphasis characters (`*` or `_`), so a sentence set off in bold or italics is still read from its first word. What ends a frame is a full stop, or a clause break (a comma before a coordinating conjunction, or a bare comma, semicolon or colon): a flagged clause need not be the sentence's last. The two frames: two negative-subject clauses joined by "and", the first predicate's word count excluding "and" itself so an atomic group can't swallow the separator ("Nothing is deployed and nothing is queued."); a negative-subject clause whose object carries its own negated relative clause, the negation the full closed set of auxiliaries and contractions — does/do/did, has/have/had, is/are/was/were — with the first predicate excluding "that" for the same atomic-group reason as frame 1, and up to ten words between the negation and the clause end so a longer relative clause still closes the match ("nothing gets merged that does not get reviewed."); `medium` confidence. Two other frames were probed and cut: "No" plus a common noun ("No vendor holds a contract.") is indistinguishable from ordinary negation ("No installation is necessary.") and fired at or above the model rate on RAID; a bare pronoun with a prepositional phrase before the verb ("Nobody on the on-call page owns the service.") is indistinguishable from a real, specific absence with the PP naming its scope ("Nobody on the team has reviewed the migration yet.").
365
369
 
366
370
  ### puffery
367
371
 
@@ -384,6 +388,7 @@ Corrects a reading nobody offered.
384
388
  - `not-x-but-y` — the bare corrective "is not X but Y" with no escalation word; `medium` confidence, because the corrective/concession distinction is syntactic and the pattern can only approximate it.
385
389
  - `not-by-x-but-by-y` — the corrective anchored on a repeated preposition rather than a copula: "not by A, but by B", "not from A but from B" (by, for, from, with, about, in, on, at, to, of, through, because of, out of); `medium` confidence. The B side must repeat the A preposition, A is capped at six words, and B may not open with a pronoun. Every corpus hit is the real shape written by a person, which is why it sits at `medium` confidence rather than being narrowed further.
386
390
  - `isnt-x-its-y` — the corrective with no conjunction: a negated copula, then a second clause that supplies the replacement ("It isn't the tool. It's the habit."), joined by a period, semicolon, comma, or dash; `medium` confidence. Neither complement may open with a pronoun, possessive, preposition ("about" excepted), degree word, or predicate adjective, which keeps out ordinary two-part contrast; some hits are still the same shape written by a person.
391
+ - `x-not-y` — the corrective turned round: the true half first and the rejected half trailing after a comma ("That's a collection gap, not a clean bill."); `medium` confidence. The subject is a deictic or an abstract head noun, each half is at most four words and opens lowercase on neither a preposition nor a degree word, the rejected half is not a pronoun and ends the clause. Reference docs use the shape to head off a real misreading.
387
392
  - `question-isnt` — "the question isn't/is not (whether|if|how|what|why|who) X, it's/but Y"; `medium` confidence. The resolving clause is required, so a plain rhetorical question never matches; "the real question is" is excluded.
388
393
  - `less-about-more-about` — "it's/this is/that's less about X (and) more about Y", also "… than about Y"; `medium` confidence. Both halves of the frame are required, and the subject slot is limited to the pronouns.
389
394
  - `actually-not-x` — "actually" and a trailing "…, not X" in one clause; the comma before "not" must be the first comma of the clause and must follow a word, so a fronted setup ("Despite the name, …") and a parenthetical both drop it; never crosses a line break; bare "actually" and "not actually" both left out