sloplint 0.8.1 → 0.10.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +230 -1
- data/README.md +181 -63
- data/docs/SPEC.md +32 -7
- data/exe/sloplint +2 -1
- data/lib/sloplint/cli.rb +242 -42
- data/lib/sloplint/engine.rb +39 -4
- data/lib/sloplint/output.rb +10 -6
- data/lib/sloplint/rules.rb +215 -4
- data/lib/sloplint/split.rb +375 -0
- data/lib/sloplint/version.rb +1 -1
- metadata +2 -1
data/README.md
CHANGED
|
@@ -1,16 +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
|
|
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.
|
|
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
|
-
##
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
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.
|
|
8
18
|
|
|
9
|
-
|
|
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.
|
|
10
42
|
|
|
11
43
|
## Installation
|
|
12
44
|
|
|
13
|
-
Requires **Ruby 3.3+** and nothing else
|
|
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.
|
|
14
46
|
|
|
15
47
|
### In Claude Cowork or the Claude desktop app
|
|
16
48
|
|
|
@@ -20,13 +52,15 @@ Open **Customize → Plugins → Add marketplace** and paste exactly this:
|
|
|
20
52
|
benjaminjackson/sloplint
|
|
21
53
|
```
|
|
22
54
|
|
|
23
|
-
|
|
55
|
+
Then install **sloplint** from the list.
|
|
24
56
|
|
|
25
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
+
New rules reach you when you click **Update** on the marketplace; nothing updates on its own.
|
|
62
|
+
|
|
63
|
+
Now ask Claude to check a draft, or run `/sloplint:check`.
|
|
30
64
|
|
|
31
65
|
### In Claude Code
|
|
32
66
|
|
|
@@ -38,7 +72,8 @@ Once it is installed, ask Claude to check a draft, or run `/sloplint:check`.
|
|
|
38
72
|
### In a terminal
|
|
39
73
|
|
|
40
74
|
```bash
|
|
41
|
-
gem install sloplint
|
|
75
|
+
gem install sloplint # the regex rules, offline and free
|
|
76
|
+
gem install sloplint-judge # optional, the judge rules behind --judge
|
|
42
77
|
```
|
|
43
78
|
|
|
44
79
|
Or build from source:
|
|
@@ -50,39 +85,29 @@ gem build sloplint.gemspec
|
|
|
50
85
|
gem install ./sloplint-*.gem
|
|
51
86
|
```
|
|
52
87
|
|
|
53
|
-
Either way
|
|
54
|
-
|
|
55
|
-
## Quick start
|
|
88
|
+
Either way you get a `sloplint` executable on your path.
|
|
56
89
|
|
|
57
|
-
|
|
90
|
+
### In a Ruby project
|
|
58
91
|
|
|
59
|
-
```
|
|
60
|
-
|
|
92
|
+
```ruby
|
|
93
|
+
gem "sloplint"
|
|
94
|
+
gem "sloplint-judge" # optional, the judge rules
|
|
61
95
|
```
|
|
62
96
|
|
|
63
|
-
|
|
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:
|
|
64
98
|
|
|
65
|
-
|
|
99
|
+
```ruby
|
|
100
|
+
require "sloplint"
|
|
66
101
|
|
|
102
|
+
notes = Sloplint::Engine.scan(draft, markdown: true)
|
|
103
|
+
notes.map(&:to_h) # the same hashes -o json prints
|
|
67
104
|
```
|
|
68
|
-
$ printf 'The report is a rich tapestry of vibrant detail.\nThat is exactly the point I keep making about it.\n' | sloplint check -
|
|
69
|
-
-:1:17: error rich-tapestry "rich tapestry"/"tapestry of" is a signature AI cliché.
|
|
70
|
-
excerpt: The report is a [rich tapestry] of vibrant detail. That is exactly the…
|
|
71
|
-
why: 'tapestry of' is one of the most reliable single-phrase model tells.
|
|
72
|
-
fix: Cut the metaphor; name the actual things.
|
|
73
105
|
|
|
74
|
-
|
|
75
|
-
excerpt: The report is a rich tapestry of [vibrant] detail. That is exactly the point I…
|
|
76
|
-
why: Travel-brochure adjectives and phrases that models reach for and careful writers avoid.
|
|
77
|
-
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.
|
|
78
107
|
|
|
79
|
-
|
|
80
|
-
excerpt: …is a rich tapestry of vibrant detail. [That is exactly] the point I keep making about it.
|
|
81
|
-
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.
|
|
82
|
-
fix: Cut it, or replace with the number, name, or match it's supposed to be precise about.
|
|
83
|
-
```
|
|
108
|
+
## What it catches, and what it doesn't
|
|
84
109
|
|
|
85
|
-
|
|
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.
|
|
86
111
|
|
|
87
112
|
## Commands
|
|
88
113
|
|
|
@@ -96,14 +121,15 @@ explain ID print one rule's message, rationale, and a bad/ok example
|
|
|
96
121
|
version print the sloplint version
|
|
97
122
|
```
|
|
98
123
|
|
|
99
|
-
`check` takes
|
|
124
|
+
`check` takes paths; `-`, or nothing, reads stdin. The options:
|
|
100
125
|
|
|
101
|
-
- `--markdown`
|
|
102
|
-
- `--select IDS` runs only these rules.
|
|
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.
|
|
103
128
|
- `--ignore IDS` skips these rules. Same id-or-category form.
|
|
104
|
-
- `--strict` runs every rule, including the
|
|
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).
|
|
105
131
|
|
|
106
|
-
|
|
132
|
+
An agent calls `explain` to decide whether a note is worth acting on:
|
|
107
133
|
|
|
108
134
|
```
|
|
109
135
|
$ sloplint explain no-x-no-y
|
|
@@ -118,9 +144,83 @@ Flags: No fluff, no filler, no jargon.
|
|
|
118
144
|
Does not: No parking on Sundays.
|
|
119
145
|
```
|
|
120
146
|
|
|
147
|
+
## The judge: the tells a regex cannot reach
|
|
148
|
+
|
|
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.
|
|
150
|
+
|
|
151
|
+
That is the judge, a second catalog of 20 **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.
|
|
152
|
+
|
|
153
|
+
### Install it and get a key
|
|
154
|
+
|
|
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.
|
|
156
|
+
|
|
157
|
+
Put the key in one of two places. The keychain, which `key set` writes and the judge reads by default:
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
sloplint-judge key set # the keychain tool prompts, with echo off
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Or the environment, which beats the keychain:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
export TYPESAFE_API_KEY=...
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The keychain is for a workstation. On a server, use the environment, or whatever secret manager fills the environment.
|
|
170
|
+
|
|
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.
|
|
172
|
+
|
|
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.
|
|
174
|
+
|
|
175
|
+
### Turn it on
|
|
176
|
+
|
|
177
|
+
One flag adds the judge rules to the same run:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
cat draft.md | sloplint check --judge --markdown -o json -
|
|
181
|
+
```
|
|
182
|
+
|
|
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.
|
|
184
|
+
|
|
185
|
+
```json
|
|
186
|
+
{
|
|
187
|
+
"notes": [ ... ],
|
|
188
|
+
"judge": { "backend": "jev-latest", "requests": 9, "input_tokens": 14200, "output_tokens": 610, "cost_usd": 0.000596 }
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
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:
|
|
197
|
+
|
|
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:
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
sloplint-judge [-o full|json] [--register TEXT] [--backend NAME] [command] [args]
|
|
208
|
+
|
|
209
|
+
check scan paths (or stdin) with the judge's rules only [default]
|
|
210
|
+
compare A B which of two passages a plain-prose editor keeps (--drift for rewrites)
|
|
211
|
+
rules list the judge's rule catalog (add --json)
|
|
212
|
+
explain ID print one rule's question, levels, rationale and fixtures
|
|
213
|
+
status say whether a run could happen here, and where the key is, without reading it
|
|
214
|
+
key set store the backend's key in the OS keychain (the keychain tool prompts for it)
|
|
215
|
+
key unset remove it from the OS keychain
|
|
216
|
+
version print the sloplint-judge version
|
|
217
|
+
```
|
|
218
|
+
|
|
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.
|
|
220
|
+
|
|
121
221
|
## The note
|
|
122
222
|
|
|
123
|
-
One match is one note. JSON output is an array of
|
|
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:
|
|
124
224
|
|
|
125
225
|
```json
|
|
126
226
|
{
|
|
@@ -140,49 +240,67 @@ One match is one note. JSON output is an array of these, or an object keyed by p
|
|
|
140
240
|
}
|
|
141
241
|
```
|
|
142
242
|
|
|
143
|
-
`severity`
|
|
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.
|
|
144
244
|
|
|
145
245
|
## Exit codes
|
|
146
246
|
|
|
147
|
-
|
|
247
|
+
The exit code is the contract. A crash exits nonzero outside these four.
|
|
148
248
|
|
|
149
249
|
| code | meaning |
|
|
150
250
|
|------|---------|
|
|
151
251
|
| 0 | ran, no notes |
|
|
152
252
|
| 1 | ran, notes found |
|
|
153
253
|
| 2 | bad arguments or usage error |
|
|
254
|
+
| 3 | `--judge` only: the model could not be reached, no notes written |
|
|
154
255
|
|
|
155
|
-
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.
|
|
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.
|
|
156
257
|
|
|
157
258
|
## The rule catalog
|
|
158
259
|
|
|
159
|
-
|
|
260
|
+
The [judge rules](#the-judge-rules) follow these.
|
|
261
|
+
|
|
262
|
+
84 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.
|
|
160
263
|
|
|
161
|
-
- **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` (
|
|
162
|
-
- **closer** (12) closes by restating or announcing the point: `thats-the-whole`, `is-the-whole-x` (the same closer on any subject:
|
|
163
|
-
- **cadence** (
|
|
164
|
-
- **puffery** (8) inflates the subject: `puffery-words` (vibrant
|
|
165
|
-
- **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` (
|
|
166
|
-
- **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` (
|
|
167
|
-
- **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
|
|
168
|
-
- **borrowed-metaphor** (5) an engineering term applied to an argument: `load-bearing`, `failure-mode-here`, `intersection-of`, `impact-verb` (
|
|
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** (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`.
|
|
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).
|
|
169
272
|
- **punctuation** (2) the mark itself: `em-dash` (any em dash), `em-dash-overuse` (three or more in one paragraph).
|
|
170
273
|
|
|
171
|
-
Every rule carries two ratings
|
|
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.
|
|
172
289
|
|
|
173
|
-
The
|
|
290
|
+
### The judge rules
|
|
174
291
|
|
|
175
|
-
|
|
292
|
+
Twenty 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.
|
|
176
293
|
|
|
177
|
-
|
|
294
|
+
- **paragraph** (6): `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.
|
|
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.
|
|
178
296
|
|
|
179
|
-
|
|
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`.
|
|
180
298
|
|
|
181
|
-
|
|
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.
|
|
182
300
|
|
|
183
301
|
## Adding a rule
|
|
184
302
|
|
|
185
|
-
Rules are data, not code. Each is a `
|
|
303
|
+
Rules are data, not code. Each is a `Rule.new` entry in `lib/sloplint/rules.rb`:
|
|
186
304
|
|
|
187
305
|
```ruby
|
|
188
306
|
Rule.new(
|
|
@@ -201,21 +319,21 @@ Rule.new(
|
|
|
201
319
|
)
|
|
202
320
|
```
|
|
203
321
|
|
|
204
|
-
`rationale`
|
|
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.
|
|
205
323
|
|
|
206
|
-
Adding a rule is one entry plus its fixtures. `rules_spec.rb`
|
|
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.
|
|
207
325
|
|
|
208
326
|
## Development
|
|
209
327
|
|
|
210
|
-
|
|
328
|
+
There is no `Gemfile`; install `rspec` and `rake` yourself (`gem install rspec rake`), then:
|
|
211
329
|
|
|
212
330
|
```bash
|
|
213
331
|
rake spec # or: rspec
|
|
214
332
|
```
|
|
215
333
|
|
|
216
|
-
`
|
|
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.
|
|
217
335
|
|
|
218
|
-
See [`docs/SPEC.md`](docs/SPEC.md) for the
|
|
336
|
+
See [`docs/SPEC.md`](docs/SPEC.md) for the design, including why sloplint is a fresh tool rather than a proselint extension.
|
|
219
337
|
|
|
220
338
|
## Author
|
|
221
339
|
|
data/docs/SPEC.md
CHANGED
|
@@ -96,7 +96,8 @@ dependencies at runtime.
|
|
|
96
96
|
|
|
97
97
|
Rationale: rules are regexes; the whole thing is a scanner plus an output
|
|
98
98
|
formatter. A dependency-free `gem install sloplint` is the robust, boring
|
|
99
|
-
choice. The
|
|
99
|
+
choice. The one exception is `check --judge`, which loads the separate
|
|
100
|
+
sloplint-judge gem and calls a model over the network; see `docs/JUDGE.md`. The name is free on RubyGems (taken on PyPI, so this also sidesteps the
|
|
100
101
|
collision). Ships a `sloplint` executable from `exe/` (claude.ai rejects a
|
|
101
102
|
plugin with a top-level `bin/`, and sloplint ships as a Claude Code plugin
|
|
102
103
|
too).
|
|
@@ -124,7 +125,7 @@ Rakefile # rake spec
|
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
RSpec is a **development** dependency (in the gemspec's `add_development_
|
|
127
|
-
dependency`), so the runtime stays dependency-free.
|
|
128
|
+
dependency`), so the runtime stays dependency-free unless `--judge` is passed.
|
|
128
129
|
|
|
129
130
|
## CLI surface
|
|
130
131
|
|
|
@@ -145,7 +146,8 @@ check options:
|
|
|
145
146
|
--markdown skip fenced/inline code spans, HTML comments, and URLs
|
|
146
147
|
--select IDS only run these rules (comma-separated ids or categories)
|
|
147
148
|
--ignore IDS skip these rules
|
|
148
|
-
--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
|
|
149
151
|
```
|
|
150
152
|
|
|
151
153
|
`check` is the default command. A first argument that is not a command name is
|
|
@@ -160,13 +162,14 @@ Deliberately left out of v1 (add when a real need shows up, not before):
|
|
|
160
162
|
|
|
161
163
|
## Exit codes
|
|
162
164
|
|
|
163
|
-
|
|
165
|
+
Four codes carry the contract. A crash just exits nonzero on its own.
|
|
164
166
|
|
|
165
167
|
| code | meaning |
|
|
166
168
|
|------|---------|
|
|
167
169
|
| 0 | ran, **no notes** |
|
|
168
170
|
| 1 | ran, **notes found** |
|
|
169
171
|
| 2 | bad arguments / usage error |
|
|
172
|
+
| 3 | `--judge` only: the model backend could not be reached, no notes written |
|
|
170
173
|
|
|
171
174
|
Empty or whitespace-only input is exit 2, like a mistyped rule id: a scan of
|
|
172
175
|
nothing must not report as a clean scan. The text is tested before
|
|
@@ -176,7 +179,9 @@ block still exits 0. Only when every source is empty.
|
|
|
176
179
|
## Note (the diagnostic object)
|
|
177
180
|
|
|
178
181
|
One match = one Note. JSON output is an array of these (or an object keyed by
|
|
179
|
-
path when multiple files are scanned).
|
|
182
|
+
path when multiple files are scanned). Under `--judge` the array or object sits
|
|
183
|
+
under `"notes"` beside a `"judge"` object with the backend name, request count
|
|
184
|
+
and token counts; see `docs/JUDGE.md` "Note".
|
|
180
185
|
|
|
181
186
|
```json
|
|
182
187
|
{
|
|
@@ -249,7 +254,9 @@ RULES = [
|
|
|
249
254
|
```
|
|
250
255
|
|
|
251
256
|
Adding a rule = appending one entry + one bad and one ok fixture. That's the
|
|
252
|
-
whole extension story.
|
|
257
|
+
whole extension story. The only thing that plugs in is sloplint-judge, and it
|
|
258
|
+
plugs in by name: `check --judge` does a lazy `require "sloplint/judge"` and
|
|
259
|
+
exits 2 with an install hint when it is missing. See `docs/JUDGE.md`.
|
|
253
260
|
|
|
254
261
|
### Why Ruby literals, not JSON/YAML
|
|
255
262
|
|
|
@@ -350,12 +357,15 @@ Rhythm: repetition, parallelism, and the long-then-short kicker.
|
|
|
350
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
|
|
351
358
|
- `is-is` — doubled copula: "what it is is …", "the thing is, is that …"; comma optional
|
|
352
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
|
|
353
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).
|
|
354
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.
|
|
355
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.
|
|
356
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.
|
|
357
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.
|
|
358
|
-
- `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
|
|
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.").
|
|
359
369
|
|
|
360
370
|
### puffery
|
|
361
371
|
|
|
@@ -476,6 +486,21 @@ RSpec (dev dependency), run via `rake spec`.
|
|
|
476
486
|
- LSP server mode, editor plugins, autofix/rewrite. sloplint *flags*; the agent
|
|
477
487
|
rewrites. Autofix is a separate tool if ever.
|
|
478
488
|
- Non-English. Languages other than English are a v2 conversation.
|
|
489
|
+
- Grammar-frequency tells from the corpus-linguistics literature. Reinhart et
|
|
490
|
+
al. (PNAS 2025) measure GPT-4o at 2.1 times the human rate for
|
|
491
|
+
nominalizations and 2.6 times for "that" relative clauses on a subject noun
|
|
492
|
+
("a framework that enables real-time analysis"). Both shifts are real in RAID
|
|
493
|
+
and in Claude Sonnet 5 text generated from RAID's prompts, and neither is a
|
|
494
|
+
shape a regex can flag. A single that-relative is ordinary English ("a move
|
|
495
|
+
that is likely to put a dent in its accounts", human BBC news) and human
|
|
496
|
+
news carries one every 650 words; two in one sentence separate no better,
|
|
497
|
+
and flagging either pushes a writer toward the nominalization instead.
|
|
498
|
+
Nominalization is a density, not a sentence shape: five or more suffix nouns
|
|
499
|
+
in one sentence fires on human abstracts at the 2023 model rate, and 50k
|
|
500
|
+
words of README prose gave 22 hits, every one a bullet list or feature
|
|
501
|
+
table. Both belong to a judge that reads a paragraph, not to this catalog.
|
|
502
|
+
Sentence-initial clausal subjects ("That the cache was stale is not in
|
|
503
|
+
dispute.") were also tried and are near zero on both sides everywhere.
|
|
479
504
|
- ML/embedding-based detection. This is a regex linter on purpose — fast,
|
|
480
505
|
explainable, zero-dependency. Statistical detection is a different product.
|
|
481
506
|
- Scraped corpora. Platform terms prohibit automated collection, and finding a
|
data/exe/sloplint
CHANGED
|
@@ -9,5 +9,6 @@ if (RUBY_VERSION.split(".").map(&:to_i).first(2) <=> [3, 3]) < 0
|
|
|
9
9
|
"macOS ships Ruby 2.6 at /usr/bin/ruby. Install a current one with `brew install ruby`."
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
$LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
|
|
13
|
+
require "sloplint/cli"
|
|
13
14
|
exit Sloplint::CLI.run(ARGV)
|