slop-lint 0.10.0 → 0.10.1

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.
package/README.md CHANGED
@@ -172,7 +172,7 @@ docRates(text); // -> raw rates: sentenceCV, participial, trico
172
172
  | Kind | What it catches |
173
173
  |---|---|
174
174
  | Failures | the em-dash (U+2014), and machine artifacts: ChatGPT citation residue and its Private Use Area delimiters, chatbot `utm_source` and `referrer` parameters on links, Gemini and Grok citation markup, Perplexity upload paths, lenticular source markers, and the chat UI's regenerate-button label. |
175
- | About 225 words | grouped by source, evidence grade and era: the 2023-2024 focal words, their inflections (closed in 0.10.0, since matching is whole-word), the measured PubMed excess vocabulary, peer-review adverbs, marketing buzzwords, and the 2025-2026 staging vocabulary (`load-bearing`, `quietly`, `genuinely`). |
175
+ | About 210 words | grouped by source, evidence grade and era: the 2023-2024 focal words, their inflections (closed in 0.10.0, since matching is whole-word), the measured PubMed excess vocabulary, peer-review adverbs, marketing buzzwords, and the 2025-2026 staging vocabulary (`load-bearing`, `quietly`, `genuinely`). |
176
176
  | About 140 phrase and construction rules | intro and closing cliches; assistant leakage (`Certainly!`, knowledge-cutoff disclaimers, `Here is a revised version`); offer-of-help closers, scoped to the last two sentences; puffery (`a poignant reminder`, `despite these challenges`); the 2025-2026 staging moves (`let that sink in`, `here's the kicker`, self-answered fragment questions, `This matters.`, `Full stop.`); the negative-contrast family (`not just X but Y`, `is no longer X. It is Y.`, `Not X. Not Y. Z.`); participial tails; and reply-bot rhetoric (validate-then-restate openers, aphorism molds, corrective anaphora). Constructions split across a soft line break inside a paragraph are caught too. |
177
177
  | Layout | stock headings ("Key takeaways", "Why it matters"), Title Case on most subheadings, colon-subtitle headings, and runs of three or more bold lead-in bullets. |
178
178
  | Advisories (documents of 15+ sentences) | uniform sentence length, participial-clause rate, nominalization density, tricolon rate, performed-hedge rate, negative-contrast density, copula avoidance ("serves as a"), bold density, one-sentence-paragraph share, and intensifier density. Each threshold sits at or beyond the most extreme document in the human baseline, set on the repo's own corpus (see `RATE_THRESHOLDS`). |
@@ -221,7 +221,9 @@ Tells are a moving target: each model family brings new ones, and old ones fade
221
221
  - Grow the structural rules from specimens. Word-frequency discovery cannot see the reply-register tells, so those are collected as specimens in [`corpus/specimens/`](corpus/specimens/) and turned into `PHRASE_GROUPS` rules by hand: draft the narrowest regex that captures the shape, screen it against `corpus/baseline` to zero false positives, and require two independent sightings before it ships. One-sighting molds wait in [`PENDING.md`](corpus/specimens/PENDING.md). `npm run specimens` reports coverage; `npm run specimens -- <harvest.txt>` triages freshly harvested text and flags second sightings of pending molds.
222
222
  - Measure typography and structure with `npm run stats` (`corpus-stats.mjs`): em-dash, smart-quote, semicolon, ellipsis and bold rates, plus the mean sentence-length variation, participial, nominalization and tricolon rates per corpus folder. This is where a new rate rule gets prototyped before it moves into the linter.
223
223
  - Screen against registers with `node build-registers.mjs` then `node screen-registers.mjs`: it downloads pre-2023 human reviews, abstracts, PR descriptions, commits, code, Wikipedia, fiction and email into the gitignored `corpus/registers/` and reports every rule hit by register, so a profile rule can be checked against its own register before it ships.
224
- - A monthly sweep does this for you. `.github/workflows/catalogue-refresh.yml` runs `refresh.mjs` on a schedule, with no secrets: it combines corpus discovery with a coverage diff against the public Wikipedia "Signs of AI writing" essay, and files the candidates as a GitHub issue to review.
224
+ - A monthly sweep does this for you. `.github/workflows/catalogue-refresh.yml` runs `refresh.mjs` on a schedule, with no secrets. It diffs the public Wikipedia "Signs of AI writing" essay against the catalogue and against `corpus/refresh-reviewed.json`, which records each decision (added, covered, rejected or held, with the reason). It files an issue only when an item is new, and closes the previous one. Record a decision for every item you review, or it comes back next month.
225
+ - `node refresh.mjs --corpus` adds a corpus-discovery table. It keeps only words that recur across at least a quarter of the sample prompts, since a word that over-represents because one prompt was about coffee is a topic, not a tell.
226
+ - `node mine-transcripts.mjs` measures the catalogue on your own Claude Code sessions (`~/.claude/projects`). It reports each rule's hits per 10k words by model, risers and fallers between the oldest and newest versions of a model family, and pooled structure rates. Sessions that had a writing skill loaded are reported apart as `<model> +skill`, and output loops are dropped. Nothing leaves your machine: the report goes to the gitignored `corpus/transcripts/` and holds no message text. `--discover` adds word discovery, though on one person's sessions it mostly returns project vocabulary.
225
227
 
226
228
  Accepting a candidate means adding it to `WORD_GROUPS` or `PHRASE_GROUPS` with a source and evidence grade, screening it, noting it in `CHANGELOG.md`, bumping the version, running `npm run skill`, and reviewing the skill. Keep the conservative bias: no tell enters without a source.
227
229
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slop-lint",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Zero-dependency linter that flags AI 'slop' in prose: fails on the em-dash, warns on LLM tells (words, cliches, constructions).",
5
5
  "type": "module",
6
6
  "bin": {
package/slop-lint.mjs CHANGED
@@ -56,7 +56,7 @@ import { readFileSync, readdirSync, statSync, existsSync, realpathSync } from "n
56
56
  import { join, sep, extname } from "node:path";
57
57
  import { pathToFileURL } from "node:url";
58
58
 
59
- export const VERSION = "0.10.0";
59
+ export const VERSION = "0.10.1";
60
60
 
61
61
  // Opt-in register groups. A WORD_GROUPS / PHRASE_GROUPS entry with a `profile` only
62
62
  // runs when that profile is enabled (--profile, or "profiles" in .slop-lint.json).
@@ -102,7 +102,7 @@ export const WORD_GROUPS = [
102
102
  words: [
103
103
  "leverage", "leveraging", "synergy", "robust", "seamless", "seamlessly",
104
104
  "transformative", "scalable", "cutting-edge", "game-changer", "game changer",
105
- "paradigm", "holistic", "empower", "harness", "unleash", "unlock", "utilize",
105
+ "paradigm", "holistic", "empower", "unleash", "unlock", "utilize",
106
106
  "utilise", "supercharge", "state-of-the-art", "best-in-class", "vibrant",
107
107
  "multifaceted", "revolutionize", "ever-evolving", "fast-paced", "comprehensive",
108
108
  ],
@@ -170,7 +170,7 @@ export const WORD_GROUPS = [
170
170
  era: "GPT-3.5/4 (2023-2025)",
171
171
  words: [
172
172
  "delved", "showcased", "underscored", "fosters", "fostering", "garnering",
173
- "leverages", "harnesses", "harnessing", "empowers", "unlocking", "revolutionizing",
173
+ "leverages", "harnessing", "empowers", "unlocking", "revolutionizing",
174
174
  "realms", "encompass", "encompasses", "encompassed", "surpassing", "illuminates",
175
175
  "illuminating", "utilizes", "intricacies",
176
176
  ],
@@ -282,6 +282,18 @@ export const ALL_WORDS = WORD_GROUPS.flatMap((g) => g.words);
282
282
  // is tried from each sentence start, so the two-sentence shape is caught
283
283
  // when a soft line break splits it
284
284
  export const PHRASE_GROUPS = [
285
+ {
286
+ // "harness" and "harnesses" moved from the word lists (0.1.0 buzzwords; Kobak et al.
287
+ // for "harnesses"): as nouns they are engineering vocabulary ("test harness", "the
288
+ // eval harness"), most of the hits in one user's 2026 Claude Code sessions. Only the
289
+ // verb is the tell. "harnessing" and "harnessed" stay word rules.
290
+ since: "0.10.1",
291
+ source: "Kobak et al. 2025 (harnesses); practitioner buzzword lists (harness); narrowed after the transcript sweep",
292
+ evidence: "M1",
293
+ rules: [
294
+ { re: /(?<!\b(the|a|an|our|your|their|its|this|that|each|every|new|test|eval|benchmark|integration) )\bharness(es)? (the|its|their|our|your|his|her|this|these|that|those|every|ai|data|technology|power|potential)\b|\bto harness\b/i, msg: 'word "harness" (as a verb)' },
295
+ ],
296
+ },
285
297
  {
286
298
  since: "0.1.0",
287
299
  source: "Wikipedia 'Signs of AI writing' essay; practitioner blacklists",