@heyramzi/lint 2.7.0 → 2.9.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.
package/README.md CHANGED
@@ -330,9 +330,12 @@ Reddit bench below, because the humanizer checks refused 151 of 157 human replie
330
330
  of 25 words or more. `aiSignalNames(text)` lists them.
331
331
  - **Menu paths**: a written-out "System Settings > Keyboard > Text Replacements" fails.
332
332
  - **Ramzi's two rules**: no em or en dash, and no single block over 95 words.
333
+ - **One exact pattern**: `comma-and-you-can` (", and you can still go custom when a big one shows
334
+ up"). `REGISTERS.forum.exact` names it as `pattern:comma-and-you-can`, so the rest of its kind
335
+ stays off. A caller filtering findings itself uses `keepsExact(register, finding)`.
333
336
  - **Jev** asks whole-reply questions in place of the sentence shapes, and refuses at 0.75:
334
- `FORUM_SHAPES` always, and `FORUM_THREAD_SHAPES` (a looked-up tool the post never mentioned,
335
- refused at its own 0.7) when `--thread=<post.md>` passes the post's title and body. The forum
337
+ `FORUM_SHAPES` always, and `FORUM_THREAD_SHAPES` (a looked-up tool the post never mentioned)
338
+ when `--thread=<post.md>` passes the post's title and body. The forum
336
339
  register always asks Jev, and when Jev can't answer the reply fails with `jev unscored`. A reply
337
340
  under 25 words asks Jev nothing.
338
341
 
@@ -15,9 +15,15 @@ import { changedStorageValues, hasStorageKeys, report } from "#lint/push-diff.js
15
15
  const repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { encoding: "utf8" }).trim();
16
16
  const git = (args) =>
17
17
  execFileSync("git", args, { cwd: repoRoot, encoding: "utf8", maxBuffer: 512 * 1024 * 1024 });
18
+ // Quiet stderr: on a detached HEAD, `merge-base HEAD @{u}` prints a fatal line before the fallback works.
18
19
  const tryGit = (args) => {
19
20
  try {
20
- return git(args);
21
+ return execFileSync("git", args, {
22
+ cwd: repoRoot,
23
+ encoding: "utf8",
24
+ maxBuffer: 512 * 1024 * 1024,
25
+ stdio: ["ignore", "pipe", "ignore"],
26
+ });
21
27
  } catch {
22
28
  return "";
23
29
  }
@@ -0,0 +1,121 @@
1
+ /**
2
+ * The Jev questions, one per root cause, with no import: `jev-core.js` asks them and re-exports them.
3
+ */
4
+
5
+ /** One question per root cause, not per pattern: humanizer references/patterns.md maps each pattern to one. */
6
+ export const q = (instructions, yes, no) => ({
7
+ type: "noul",
8
+ instructions,
9
+ criteria: { true: yes, false: no },
10
+ });
11
+ const PLAIN =
12
+ "A plain, literal sentence: a step the reader takes, a named thing, a number, or a fact that carries its own meaning.";
13
+
14
+ /** Asked of every sentence, with its paragraph as `context`. */
15
+ export const SHAPES = {
16
+ inflated: q(
17
+ "Does `sentence` tell the reader that something matters, impresses or feels a certain way, instead of giving the fact, number or mechanism that would show it, or is it generic enough to move unchanged to another company, product or person?",
18
+ "Praise, significance, emotion or quality asserted, not shown, or a line with nothing only this subject could say.",
19
+ `${PLAIN} Or a letter's courtesy to its reader: a thanks, a greeting, an invitation.`,
20
+ ),
21
+ aphorism: q(
22
+ "Is `sentence` a slogan or maxim: a quotable general truth stated in abstract terms instead of a concrete step, number or fact?",
23
+ "Could be printed on a poster, often a flip or an 'only', and the next sentence has to explain it.",
24
+ PLAIN,
25
+ ),
26
+ law: q(
27
+ "Does `sentence` describe how a tool, setting or system behaves as a general rule, with the thing as the subject and no person acting, where it could tell the reader what to do and what they will see?",
28
+ "The subject is an object or an idea, the verb is a state or a spread, and the reader has no step to copy. Often it ends on 'it' or 'them'.",
29
+ "A person does something, a literal step (where to click, what appears), a measured result of what happened, with its number, or a plain fact or rule about one specific thing said the way a person would ('the back door doesn't lock', 'a cancelled ticket is never refunded').",
30
+ ),
31
+ vague: q(
32
+ "Does `sentence` point at content instead of stating it: it announces, promises, sets up or labels a point that the sentence itself does not give?",
33
+ "A teaser, signpost or label: the reader learns that there is a reason, a tip, a rule or a next step, but not what it is.",
34
+ "The sentence gives the content itself, the paragraph gives it right after, or it starts with 'Link:' and names what the reader does when they click.",
35
+ ),
36
+ hedge: q(
37
+ "Does `sentence` pad itself with a hedge, a reassurance, a propping adverb (really, basically, actually), an unnamed source, or a line about the conversation instead of the subject?",
38
+ "It contains padding of that kind, or talks about the writing instead of the subject.",
39
+ "No hedge, prop or talk about the conversation. A thanks, a greeting or a question to the reader is not padding.",
40
+ ),
41
+ filler: q(
42
+ "Can one word or phrase in `sentence` be deleted, or swapped for a shorter one, and the sentence still say exactly the same thing?",
43
+ "At least one word can go or shrink ('in order to', 'each and every', a word the rest already implies) with no loss of meaning.",
44
+ "Every word carries meaning the sentence would lose. Warmth to the reader in a letter counts as meaning.",
45
+ ),
46
+ contrast: q(
47
+ "Does `sentence` stage a contrast to make its point: 'not X, it's Y' denying a claim nobody made, an either-or where one side is a strawman, a 'from X to Y' span with no real range, or one claim said twice in other words?",
48
+ "The denied half, the strawman side, the span or the repeat is there for effect. Delete it and the point stands alone.",
49
+ "A real comparison between two named options, or a single plain claim.",
50
+ ),
51
+ stilted: q(
52
+ "Does `sentence` sound awkward or unnatural, like a clumsy translation or a forced rewrite, so a native English speaker would phrase it differently or need to reread it?",
53
+ "Awkward phrasing: a person made the subject of find, meet or get where people would say 'there is' or 'X has'; an odd verb; an unexplained code or label; a clumsy word order.",
54
+ "Natural, clear English a person would say out loud.",
55
+ ),
56
+ pitch: q(
57
+ "Is `sentence` an ad line that promises an effortless result: a dramatic command plus an outcome said to be already true, or a lone word used as a verdict, instead of saying what happens when the reader takes an action?",
58
+ "Reads like a tagline: 'Do X, and Y is already done', or a one-word fragment as the punchline.",
59
+ `${PLAIN} Or a literal step with what happens next, in the product's own terms.`,
60
+ ),
61
+ personified: q(
62
+ "Does `sentence` use a figure where a literal word exists: a non-human thing doing what only a person does, or an abstract idea dressed as a physical object?",
63
+ "A tool that knows, wants, saves or gives; an idea that is a lever, a ceiling, a moat or a muscle.",
64
+ "The thing does something mechanical and literal, or a person does the acting.",
65
+ ),
66
+ thingdoer: q(
67
+ "Does `sentence` make a tool, automation, checklist, script or system the grammatical subject of what a person sets up or does, where a person as the subject ('we', 'you', or an imperative) would be plainer?",
68
+ "A noun leads and acts: 'An automation creates it and assigns it', 'A checklist catches this', 'The script only posts what is approved'. It reads like a description of a machine, with nobody behind it. Ramzi, 30 Sep 2026.",
69
+ "A person is the subject or the sentence is an instruction ('Have an automation create it'), or the thing genuinely is the subject of a literal fact ('The API returns JSON').",
70
+ ),
71
+ stagey: q(
72
+ "Does `sentence` describe an action or a rule as a small scene where a plain verb and object would do: 'waits for someone to say go' for 'needs your approval', 'gets you most of the way' for 'covers most of it', 'does its sweep' for 'runs'?",
73
+ "A phrase that acts out the idea (waits, says go, gets you there, takes the wheel) when one plain verb says the same thing. Ramzi, 30 Sep 2026: 'Claude Code on a timer requires you' is simpler and means the same.",
74
+ "The sentence already uses the plain verb and object a person would say out loud.",
75
+ ),
76
+ reassurance: q(
77
+ "Does `sentence` vouch for what the reader is shown (a demo, screenshot, photo, number, review or the text itself) when nothing in the text doubted it: insist it is real, genuine, untouched, or the product's or the writer's own, or deny it is fake, staged, mocked up, written by AI, sponsored, cherry-picked or padded?",
78
+ "An unasked claim of authenticity or honesty with no proof beside it. A demo that shows the product, a photo that shows the dish and a review nobody paid for are what any reader already assumes, so saying so only fends off a doubt, and raising the doubt is what plants it. Ramzi, 2 Nov 2026.",
79
+ "A plain fact about the thing or what it does, a disclosure of who the writer is or what they were given ('I'm the developer', 'they sent me a free unit'), or an answer to a doubt someone in the text raised.",
80
+ ),
81
+ };
82
+
83
+ /** Asked once per paragraph of 3 or more sentences: the shapes no single sentence shows. */
84
+ export const PARAGRAPH_SHAPES = {
85
+ rhythm: q(
86
+ "Does `paragraph` repeat one structure instead of varying it: sentences of one length or one opening, items forced into threes, a punchy closer on every beat, a word reused where no new idea arrived, or a transition that asserts a link the facts do not show?",
87
+ "A reader could predict the shape of the next sentence before reading it.",
88
+ "Sentence lengths and openings vary with the thought, and each link between sentences is shown by what they say.",
89
+ ),
90
+ };
91
+
92
+ /**
93
+ * Asked once of a whole forum reply, in place of SHAPES and PARAGRAPH_SHAPES: those refused 151 of
94
+ * 157 human Reddit replies (scripts/reddit-bench.mjs, 2 Nov 2026). Of 10 whole-reply questions tried,
95
+ * this one alone refused a bad comment at FAIL without refusing a human. The rest live in TECHLOG.md.
96
+ */
97
+ export const FORUM_SHAPES = {
98
+ tutorial: q(
99
+ "`reply` is a comment on a Reddit thread. Does it read as a complete tutorial or help-article answer: the whole procedure laid out step by step from start to finish, each step an instruction, rather than what one person typed from their own experience?",
100
+ "A tidy walkthrough: select this, then open that, pick this, then hit that. Every step covered in order, like documentation or a support bot.",
101
+ "A person talking: a partial answer, a pointer, an opinion, a story about what they did, a question back, or one tip with their reason.",
102
+ ),
103
+ };
104
+
105
+ /**
106
+ * Asked of a forum reply beside its thread's title and body, only when the caller passes the thread.
107
+ * Ramzi, 2 Nov 2026, on an Espanso reply that passed 2.6.0: "Who the fuck knows about this app?"
108
+ * At 0.7 it refused 2 more of his 6 flagged replies and 2 of 265 humans; 4 other wordings
109
+ * cost 6 to 26 humans for the same catch (TECHLOG.md). By 5 Nov the same code at 0.7 refused 13
110
+ * humans, and every flagged reply it caught was caught by another check, so its bar is 0.75.
111
+ */
112
+ export const FORUM_THREAD_SHAPES = {
113
+ lookedup: {
114
+ ...q(
115
+ "`reply` answers the Reddit post in `thread`. Does `reply` recommend a specific tool, feature or setting that `thread` never mentions, described with looked-up precision (its exact name, where it lives, how it behaves), while nothing shows the writer has used it themselves?",
116
+ "A researched pointer: names an app, feature or setting the poster never raised, says exactly where it is or what it does, and the writer's own use of it is nowhere in the reply.",
117
+ "The writer works with what the poster named, or says they use the thing ('I use', 'we switched to', 'mine does'), or the names are loose and from memory.",
118
+ ),
119
+ bar: 0.75,
120
+ },
121
+ };
@@ -15,6 +15,23 @@ export const patternsCommaClauses = [
15
15
  example:
16
16
  '"Yes, and the honest answer is that a full reconcile is not available." / "No, but the reason matters more than the number." / "Honestly, and this is the part nobody says, it never worked."',
17
17
  },
18
+ {
19
+ id: "comma-and-you-can",
20
+ // A finished clause, then a comma plus "and you can/'ll/will still|always", or "and you can X" plus a deferred "once/after/when" clause.
21
+
22
+ // The modal is required and an obligation ("and you still need a separate app") stays out, because that is a cost, not a reassurance.
23
+
24
+ // The deferred form takes a lowercase conjunction plus a subject and no comma between, so "at once", "After Effects", "later" and a relative clause pass.
25
+
26
+ // A bare ", and you can use local models" is a human's bonus option on the Reddit bench (o4sodph), so the plain form is never matched.
27
+
28
+ // Swept over ~/Studio on 5 Nov 2026: 0 of 265 human bench replies, and the "always" hits left were speech transcripts.
29
+ test: /,\s+and\s+you(?:'ll|’ll|\s+will|\s+can)\s+(?:still|always)\s+(?!(?:need|needs|must)\b|ha(?:ve|s)\s+to\b)[a-z]|,\s+and\s+you\s+can\s+(?!not\b)[a-z]+\b[^.!?\n,]{0,60}?(?<!\bat\s)\b(?:once|after|when|whenever)\s+(?:it|the|they|you|that|this|a|an|things?|everything)\b/,
30
+ name: "Comma-and-you-can tail",
31
+ rule: 'A sentence that already answered, then a comma plus "and you can still", "and you\'ll still" or "and you can always" bolting on a reassurance or a spare option, or "and you can X once Y" deferring a bonus step. The tail heads off a worry nobody raised and closes the reply too neatly. Ramzi, 5 Nov 2026, on a lint-clean Reddit draft: "is AI slop and should have been caught". Cut the tail, or give the option its own sentence with the reason a reader would want it.',
32
+ example:
33
+ '"If they are, 2 or 3 packages would cover most of them, and you can still go custom when a big one shows up." / "Pick the cheaper plan, and you\'ll still have room to upgrade." / "A run that errors waits there with its data, and you can resume it after the fix."',
34
+ },
18
35
  {
19
36
  id: "comma-and-title",
20
37
  name: "The rest of the site, and what each part is for",
@@ -107,7 +124,7 @@ export const patternsCommaClauses = [
107
124
  id: "advisory-aside",
108
125
  // The announcement, not the advice. Closed set of openers, each one a fixed phrase nobody writes by accident.
109
126
 
110
- // "one thing I'd/I'll/I would" added 14 Sep 2026, Ramzi: "this sentence is pure AI slop 'One thing I'd revisit'" — the same self-assigned-critique announcement as "one thing worth",
127
+ // "one thing I'd/I'll/I would" added 14 Sep 2026, Ramzi: "this sentence is pure AI slop 'One thing I'd revisit'". It's the same self-assigned-critique announcement as "one thing worth",
111
128
 
112
129
  // one pronoun over.
113
130
  test: /\b(?:one thing worth|a quick note before|worth flagging|one last thing that|a small tip before|one thing (?:i'd|i'll|i would|i will))\b/i,
@@ -11,6 +11,15 @@ export const patternsVagueAndFlourish = [
11
11
  example:
12
12
  '"A quote to sign before anything exists." / "You commit before anything is built." / "They bill you when nothing has happened."',
13
13
  },
14
+ {
15
+ id: "unnamed-fix",
16
+ name: "Unnamed fix",
17
+ // Ramzi caught "Step 4: fix the prompt part that's missing" on a Claude Start slide the gate passed (TSK-2028, 7 Nov 2026).
18
+ test: /\bfix\s+(?:what(?:(?:'|’)s|\s+is)|whatever(?:(?:'|’)s|\s+is)|the\s+(?:[a-z]+\s+){0,2}(?:part|bit|thing|piece|one)s?\s+that(?:(?:'|’)s|\s+is|\s+are))\s+(?:wrong|missing|off|broken)\b/i,
19
+ rule: "An instruction to fix something it never names. The reader has to work out what is wrong before they can act. Name the fix itself: check every price in offer.md, ask for it shorter, tell it what to forget.",
20
+ example:
21
+ '"Step 4: fix the prompt part that\'s missing" / "Open offer.md and fix what\'s wrong" / "Read the view and fix what is missing."',
22
+ },
14
23
  {
15
24
  id: "recap-opener",
16
25
  name: "Recap opener",
@@ -178,6 +178,13 @@ export const phrasesEnCore = [
178
178
  // It is his tutorial register pointing at a screen, not reader guidance. patterns.md 48 carries it as a written-copy read.
179
179
  "the key point is",
180
180
  "this distinction matters",
181
+ // blader/humanizer 3.1.0 §2: the closer that grades a point, and the line that names what an example already showed.
182
+
183
+ // Zero hits for the last three across ~/Studio on 5 Nov 2026; "that distinction matters" hit 2 AI-drafted pages.
184
+ "that distinction matters",
185
+ "this shows the importance of",
186
+ "the message was clear",
187
+ "it was a lesson in",
181
188
  "nobody tells you",
182
189
  "the part everyone misses",
183
190
  "most people get wrong",
package/jev-core.js CHANGED
@@ -5,6 +5,21 @@
5
5
  /*
6
6
  * The caller brings `post`: `{ state, questions }` in, Jev's `answers` out. jev.js is the Node one.
7
7
  */
8
+ import {
9
+ FORUM_SHAPES,
10
+ FORUM_THREAD_SHAPES,
11
+ PARAGRAPH_SHAPES,
12
+ SHAPES,
13
+ } from "#lint/data/jev-shapes.js";
14
+
15
+ // The questions live in data/jev-shapes.js; callers keep importing them from here.
16
+ export {
17
+ FORUM_SHAPES,
18
+ FORUM_THREAD_SHAPES,
19
+ PARAGRAPH_SHAPES,
20
+ SHAPES,
21
+ q,
22
+ } from "#lint/data/jev-shapes.js";
8
23
 
9
24
  // =========================
10
25
  // CONSTANTS
@@ -27,123 +42,6 @@ const CONCURRENCY = 8;
27
42
  /** The Reddit bench holds no human reply under this, so a shorter reply is never asked. */
28
43
  export const FORUM_MIN_WORDS = 25;
29
44
 
30
- /** One question per root cause, not per pattern: humanizer references/patterns.md maps each pattern to one. */
31
- export const q = (instructions, yes, no) => ({
32
- type: "noul",
33
- instructions,
34
- criteria: { true: yes, false: no },
35
- });
36
- const PLAIN =
37
- "A plain, literal sentence: a step the reader takes, a named thing, a number, or a fact that carries its own meaning.";
38
-
39
- /** Asked of every sentence, with its paragraph as `context`. */
40
- export const SHAPES = {
41
- inflated: q(
42
- "Does `sentence` tell the reader that something matters, impresses or feels a certain way, instead of giving the fact, number or mechanism that would show it, or is it generic enough to move unchanged to another company, product or person?",
43
- "Praise, significance, emotion or quality asserted, not shown, or a line with nothing only this subject could say.",
44
- `${PLAIN} Or a letter's courtesy to its reader: a thanks, a greeting, an invitation.`,
45
- ),
46
- aphorism: q(
47
- "Is `sentence` a slogan or maxim: a quotable general truth stated in abstract terms instead of a concrete step, number or fact?",
48
- "Could be printed on a poster, often a flip or an 'only', and the next sentence has to explain it.",
49
- PLAIN,
50
- ),
51
- law: q(
52
- "Does `sentence` describe how a tool, setting or system behaves as a general rule, with the thing as the subject and no person acting, where it could tell the reader what to do and what they will see?",
53
- "The subject is an object or an idea, the verb is a state or a spread, and the reader has no step to copy. Often it ends on 'it' or 'them'.",
54
- "A person does something, a literal step (where to click, what appears), a measured result of what happened, with its number, or a plain fact or rule about one specific thing said the way a person would ('the back door doesn't lock', 'a cancelled ticket is never refunded').",
55
- ),
56
- vague: q(
57
- "Does `sentence` point at content instead of stating it: it announces, promises, sets up or labels a point that the sentence itself does not give?",
58
- "A teaser, signpost or label: the reader learns that there is a reason, a tip, a rule or a next step, but not what it is.",
59
- "The sentence gives the content itself, the paragraph gives it right after, or it starts with 'Link:' and names what the reader does when they click.",
60
- ),
61
- hedge: q(
62
- "Does `sentence` pad itself with a hedge, a reassurance, a propping adverb (really, basically, actually), an unnamed source, or a line about the conversation instead of the subject?",
63
- "It contains padding of that kind, or talks about the writing instead of the subject.",
64
- "No hedge, prop or talk about the conversation. A thanks, a greeting or a question to the reader is not padding.",
65
- ),
66
- filler: q(
67
- "Can one word or phrase in `sentence` be deleted, or swapped for a shorter one, and the sentence still say exactly the same thing?",
68
- "At least one word can go or shrink ('in order to', 'each and every', a word the rest already implies) with no loss of meaning.",
69
- "Every word carries meaning the sentence would lose. Warmth to the reader in a letter counts as meaning.",
70
- ),
71
- contrast: q(
72
- "Does `sentence` stage a contrast to make its point: 'not X, it's Y' denying a claim nobody made, an either-or where one side is a strawman, a 'from X to Y' span with no real range, or one claim said twice in other words?",
73
- "The denied half, the strawman side, the span or the repeat is there for effect. Delete it and the point stands alone.",
74
- "A real comparison between two named options, or a single plain claim.",
75
- ),
76
- stilted: q(
77
- "Does `sentence` sound awkward or unnatural, like a clumsy translation or a forced rewrite, so a native English speaker would phrase it differently or need to reread it?",
78
- "Awkward phrasing: a person made the subject of find, meet or get where people would say 'there is' or 'X has'; an odd verb; an unexplained code or label; a clumsy word order.",
79
- "Natural, clear English a person would say out loud.",
80
- ),
81
- pitch: q(
82
- "Is `sentence` an ad line that promises an effortless result: a dramatic command plus an outcome said to be already true, or a lone word used as a verdict, instead of saying what happens when the reader takes an action?",
83
- "Reads like a tagline: 'Do X, and Y is already done', or a one-word fragment as the punchline.",
84
- `${PLAIN} Or a literal step with what happens next, in the product's own terms.`,
85
- ),
86
- personified: q(
87
- "Does `sentence` use a figure where a literal word exists: a non-human thing doing what only a person does, or an abstract idea dressed as a physical object?",
88
- "A tool that knows, wants, saves or gives; an idea that is a lever, a ceiling, a moat or a muscle.",
89
- "The thing does something mechanical and literal, or a person does the acting.",
90
- ),
91
- thingdoer: q(
92
- "Does `sentence` make a tool, automation, checklist, script or system the grammatical subject of what a person sets up or does, where a person as the subject ('we', 'you', or an imperative) would be plainer?",
93
- "A noun leads and acts: 'An automation creates it and assigns it', 'A checklist catches this', 'The script only posts what is approved'. It reads like a description of a machine, with nobody behind it. Ramzi, 30 Sep 2026.",
94
- "A person is the subject or the sentence is an instruction ('Have an automation create it'), or the thing genuinely is the subject of a literal fact ('The API returns JSON').",
95
- ),
96
- stagey: q(
97
- "Does `sentence` describe an action or a rule as a small scene where a plain verb and object would do: 'waits for someone to say go' for 'needs your approval', 'gets you most of the way' for 'covers most of it', 'does its sweep' for 'runs'?",
98
- "A phrase that acts out the idea (waits, says go, gets you there, takes the wheel) when one plain verb says the same thing. Ramzi, 30 Sep 2026: 'Claude Code on a timer requires you' is simpler and means the same.",
99
- "The sentence already uses the plain verb and object a person would say out loud.",
100
- ),
101
- reassurance: q(
102
- "Does `sentence` vouch for what the reader is shown (a demo, screenshot, photo, number, review or the text itself) when nothing in the text doubted it: insist it is real, genuine, untouched, or the product's or the writer's own, or deny it is fake, staged, mocked up, written by AI, sponsored, cherry-picked or padded?",
103
- "An unasked claim of authenticity or honesty with no proof beside it. A demo that shows the product, a photo that shows the dish and a review nobody paid for are what any reader already assumes, so saying so only fends off a doubt, and raising the doubt is what plants it. Ramzi, 2 Nov 2026.",
104
- "A plain fact about the thing or what it does, a disclosure of who the writer is or what they were given ('I'm the developer', 'they sent me a free unit'), or an answer to a doubt someone in the text raised.",
105
- ),
106
- };
107
-
108
- /** Asked once per paragraph of 3 or more sentences: the shapes no single sentence shows. */
109
- export const PARAGRAPH_SHAPES = {
110
- rhythm: q(
111
- "Does `paragraph` repeat one structure instead of varying it: sentences of one length or one opening, items forced into threes, a punchy closer on every beat, a word reused where no new idea arrived, or a transition that asserts a link the facts do not show?",
112
- "A reader could predict the shape of the next sentence before reading it.",
113
- "Sentence lengths and openings vary with the thought, and each link between sentences is shown by what they say.",
114
- ),
115
- };
116
-
117
- /**
118
- * Asked once of a whole forum reply, in place of SHAPES and PARAGRAPH_SHAPES: those refused 151 of
119
- * 157 human Reddit replies (scripts/reddit-bench.mjs, 2 Nov 2026). Of 10 whole-reply questions tried,
120
- * this one alone refused a bad comment at FAIL without refusing a human. The rest live in TECHLOG.md.
121
- */
122
- export const FORUM_SHAPES = {
123
- tutorial: q(
124
- "`reply` is a comment on a Reddit thread. Does it read as a complete tutorial or help-article answer: the whole procedure laid out step by step from start to finish, each step an instruction, rather than what one person typed from their own experience?",
125
- "A tidy walkthrough: select this, then open that, pick this, then hit that. Every step covered in order, like documentation or a support bot.",
126
- "A person talking: a partial answer, a pointer, an opinion, a story about what they did, a question back, or one tip with their reason.",
127
- ),
128
- };
129
-
130
- /**
131
- * Asked of a forum reply beside its thread's title and body, only when the caller passes the thread.
132
- * Ramzi, 2 Nov 2026, on an Espanso reply that passed 2.6.0: "Who the fuck knows about this app?"
133
- * At its 0.7 `bar` it refused 2 more of his 6 flagged replies and 2 of 265 humans; 4 other wordings
134
- * cost 6 to 26 humans for the same catch (TECHLOG.md).
135
- */
136
- export const FORUM_THREAD_SHAPES = {
137
- lookedup: {
138
- ...q(
139
- "`reply` answers the Reddit post in `thread`. Does `reply` recommend a specific tool, feature or setting that `thread` never mentions, described with looked-up precision (its exact name, where it lives, how it behaves), while nothing shows the writer has used it themselves?",
140
- "A researched pointer: names an app, feature or setting the poster never raised, says exactly where it is or what it does, and the writer's own use of it is nowhere in the reply.",
141
- "The writer works with what the poster named, or says they use the thing ('I use', 'we switched to', 'mine does'), or the names are loose and from memory.",
142
- ),
143
- bar: 0.7,
144
- },
145
- };
146
-
147
45
  // =========================
148
46
  // FUNCTIONS
149
47
  // =========================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyramzi/lint",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "description": "Shared oxlint rules, base config and gates for Studio projects",
5
5
  "license": "MIT",
6
6
  "repository": {
package/register.d.ts CHANGED
@@ -58,11 +58,17 @@ export declare const REGISTERS: Record<
58
58
  label: string;
59
59
  source: string;
60
60
  bands: Record<string, { min?: number; max?: number }>;
61
- /** The `auditSlop` finding kinds `slopGate` keeps for this register. Absent keeps every kind. */
61
+ /** The `auditSlop` finding kinds, or single `kind:id`s, `slopGate` keeps for this register. Absent keeps every kind. */
62
62
  exact?: string[];
63
63
  }
64
64
  >;
65
65
 
66
+ /** Whether `register` keeps an `auditSlop` finding, by its kind or its `kind:id`. */
67
+ export declare function keepsExact(
68
+ register: RegisterName,
69
+ finding: { kind: string; id: string },
70
+ ): boolean;
71
+
66
72
  /** The AI signals a reply shows, by name, as the forum band counts them. Empty under 25 words. */
67
73
  export declare function aiSignalNames(text: string, measured?: RegisterMeasurement): string[];
68
74
 
package/register.js CHANGED
@@ -289,7 +289,9 @@ REGISTERS.forum = {
289
289
  unbrokenWords: { max: 95 },
290
290
  },
291
291
  // The exact-pattern kinds that still count. Every other kind refused 68 of the 157 humans.
292
- exact: ["dash"],
292
+
293
+ // `pattern:comma-and-you-can` is one pattern, not its kind: 0 of 265 humans, and Ramzi caught it in a Reddit draft on 5 Nov 2026.
294
+ exact: ["dash", "pattern:comma-and-you-can"],
293
295
  };
294
296
 
295
297
  const DIRECTION = {
@@ -314,6 +316,12 @@ const DIRECTION = {
314
316
  menuPaths: "menu paths written out (A > B)",
315
317
  };
316
318
 
319
+ /** Whether a register keeps an `auditSlop` finding: its kind, or its `kind:id`, is in `exact`. No `exact` keeps all. */
320
+ export function keepsExact(register, finding) {
321
+ const exact = REGISTERS[register]?.exact;
322
+ return !exact || exact.includes(finding.kind) || exact.includes(`${finding.kind}:${finding.id}`);
323
+ }
324
+
317
325
  /**
318
326
  * Measure, then score against one band set.
319
327
  *
package/slop.js CHANGED
@@ -49,7 +49,7 @@ import {
49
49
  import { phrases, words } from "#lint/data/slop-words.js";
50
50
  import { artifacts } from "#lint/data/slop/artifacts.js";
51
51
  import { patterns } from "#lint/data/slop/patterns.js";
52
- import { REGISTERS, auditRegister } from "#lint/register.js";
52
+ import { auditRegister, keepsExact } from "#lint/register.js";
53
53
  import {
54
54
  LISTED_LANGUAGES,
55
55
  PRONOUNS,
@@ -504,10 +504,9 @@ export function slopGate(
504
504
  const registerAudit = register ? auditRegister(cleaned.text, register) : null;
505
505
  // A Short also owes a hook from the library and a counted, reply-ending skeleton.
506
506
  const shortsAudit = register === "shorts" ? auditShorts(cleaned.text) : null;
507
- // A register may count only some exact kinds: on Reddit the rest refused most human replies.
508
- const exact = REGISTERS[register]?.exact;
507
+ // A register may count only some exact kinds, or one `kind:id`: on Reddit the rest refused most human replies.
509
508
  const findings = [
510
- ...(exact ? audit.findings.filter((f) => exact.includes(f.kind)) : audit.findings),
509
+ ...audit.findings.filter((f) => keepsExact(register, f)),
511
510
  ...(registerAudit?.findings ?? []),
512
511
  ...(shortsAudit?.findings ?? []),
513
512
  ];