Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4d837c6
feat(chaff): section-reflection-ending reports a document where most …
isamu Nov 29, 2026
c4885ec
fix: oxford-comma-consistency reads the item after 'and then' by the …
isamu Nov 29, 2026
9d37a82
fix: section-reflection-ending keeps no off_for the measurement does …
isamu Nov 29, 2026
7b56355
fix: repeated-sentence-ending skips a paragraph that is a flattened t…
isamu Nov 29, 2026
f609f09
fix: topic-predicate-distance reads 〜については as a later clause's own topic
isamu Nov 29, 2026
595e4eb
fix: latin-spacing does not count a source line with a URL and an acc…
isamu Nov 29, 2026
fd1746b
fix: no-mixed-desumasu does not compare a contributor's profile section
isamu Nov 29, 2026
c850013
fix: oxford-comma-consistency keeps a run of adverb-led items ending …
isamu Nov 30, 2026
e657b34
fix: topic-predicate-distance keeps the name-topic check as it was
isamu Nov 30, 2026
a2df6d2
fix: repeated-sentence-ending skips only a paragraph that opens with …
isamu Nov 30, 2026
e053116
feat: inline-triad reports three short phrases strung on commas with …
isamu Nov 30, 2026
7fcf20e
feat: agreement-slip reports a noun where a second verb belongs after…
isamu Nov 30, 2026
2b5a10f
Merge remote-tracking branch 'origin/main' into fix/oxford-comma-then…
isamu Nov 30, 2026
b974550
Merge remote-tracking branch 'origin/main' into sre-finish
isamu Nov 30, 2026
40a867c
fix: oxford-comma-consistency reads a clause after 'and then' as no item
isamu Nov 30, 2026
38df463
fix: section-reflection-ending passes the bench, limit-agreement and …
isamu Nov 30, 2026
2d3f52c
Merge remote-tracking branch 'origin/fix/oxford-comma-then-after-conj…
isamu Nov 30, 2026
3383955
Merge remote-tracking branch 'origin/fix/latin-spacing-cited-url-line…
isamu Nov 30, 2026
ce2f308
Merge remote-tracking branch 'origin/fix/no-mixed-desumasu-profile-se…
isamu Nov 30, 2026
c4a1664
Merge remote-tracking branch 'origin/fix/repeated-sentence-ending-fla…
isamu Nov 30, 2026
79c7c9f
Merge remote-tracking branch 'origin/fix/topic-predicate-distance-nit…
isamu Nov 30, 2026
9b14257
Merge remote-tracking branch 'origin/fix/agreement-slip-infinitive-no…
isamu Nov 30, 2026
0e0c55c
Merge remote-tracking branch 'origin/feat/section-reflection-ending' …
isamu Nov 30, 2026
841c98e
Merge remote-tracking branch 'origin/feat/inline-triad-density' into …
isamu Nov 30, 2026
19f3364
fix: let section-reflection-ending and inline-triad share the limit f…
isamu Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions text/corpus/rules-measure.json
Original file line number Diff line number Diff line change
Expand Up @@ -5033,6 +5033,42 @@
"falseAlarms": 0
}
},
"inline-triad": {
"groups": {
"academic": {
"documents": 5,
"fired": 0
},
"blog": {
"documents": 9,
"fired": 0
},
"business": {
"documents": 41,
"fired": 0
},
"docs": {
"documents": 11,
"fired": 0
},
"legal": {
"documents": 14,
"fired": 0
},
"literature": {
"documents": 9,
"fired": 0
},
"speech": {
"documents": 3,
"fired": 0
},
"technical": {
"documents": 27,
"fired": 0
}
}
},
"installment-total-mismatch": {
"groups": {
"academic": {
Expand Down Expand Up @@ -9039,6 +9075,42 @@
"cleanSamples": 12
}
},
"section-reflection-ending": {
"groups": {
"academic": {
"documents": 10,
"fired": 0
},
"blog": {
"documents": 23,
"fired": 0
},
"business": {
"documents": 80,
"fired": 0
},
"docs": {
"documents": 21,
"fired": 0
},
"legal": {
"documents": 35,
"fired": 0
},
"literature": {
"documents": 13,
"fired": 0
},
"speech": {
"documents": 7,
"fired": 0
},
"technical": {
"documents": 26,
"fired": 0
}
}
},
"sentence-initial-conjunction-run": {
"groups": {
"academic": {
Expand Down
4 changes: 3 additions & 1 deletion text/docs/samples/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Or paste a draft into the [playground](https://isamu.github.io/lab/en/playground

日本語の見本: [../ja/README.md](../ja/README.md)

Rules with a sample: 268 / 268
Rules with a sample: 270 / 270

## Readability

Expand Down Expand Up @@ -314,12 +314,14 @@ Traits common in generated text. None of them alone says the text was generated;
| [Headings decorated with emoji](emoji-heading.md) (`emoji-heading`) | Headings with an emoji in them ("## 🚀 Getting started"), one after another |
| [Too many decorative figures](figurative-density.md) (`figurative-density`) | Figures such as "like magic" or "secret sauce" piled up instead of the mechanism |
| [An honesty marker](honesty-marker.md) (`honesty-marker`) | A sentence flagged as candid ("honestly", "if I'm being honest") |
| [Threes strung on commas](inline-triad.md) (`inline-triad`) | Three short phrases strung on commas with no "and", again and again |
| [Too many dashes](no-em-dash.md) (`no-em-dash`) | Too many dashes, which is also one of the better-known marks of generated text |
| [Too many sweeping claims about people](over-general-claim.md) (`over-general-claim`) | Sweeping claims about people ("most people", "nobody") piled up |
| [Paragraph lengths are too uniform](paragraph-length-variance.md) (`paragraph-length-variance`) | Paragraphs all of about the same length, as if poured into a mould |
| [Questions answered with a fragment](q-fragment-answer.md) (`q-fragment-answer`) | Questions the writer answers at once with a fragment ("Is it perfect? No.") |
| [Everything comes in threes](rule-of-three.md) (`rule-of-three`) | Lists that almost all have exactly three items, as if padded or trimmed to fit |
| [Section lengths are too uniform](section-length-uniformity.md) (`section-length-uniformity`) | Every section filled to the same size, which is what a template does |
| [Every section closes on a personal reflection](section-reflection-ending.md) (`section-reflection-ending`) | Nearly every section closing on "I think ..." or "I feel ..." |
| [Monotonous sentence rhythm](sentence-rhythm.md) (`sentence-rhythm`) | Sentences that are all about the same length, so the text reads as a drone |
| [Too many stock transitions](stock-transition.md) (`stock-transition`) | Too many sentences opening with "Moreover" or "Additionally" |
| [Too many denials of a premise nobody stated](unprompted-denial.md) (`unprompted-denial`) | Sentences that deny a premise nobody stated ("This isn't about tooling.") |
Expand Down
12 changes: 6 additions & 6 deletions text/docs/samples/en/agreement-slip.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ booking-email.md business/email · English genre from --genre
⚠ Words that do not agree

"These new version" mixes singular and plural
A determiner and a noun that differ in number ("a significant changes", "these new version"), a possessive where the subject belongs ("Your can check"), or two determiners in a row ("the some roads"), is left over from an edit that fixed one word and not the other. The reader stumbles, and the document looks rushed. Only forms with one reading are counted; nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these" (which can stand alone), and nouns that modify another noun ("a sales team") are not.
A determiner and a noun that differ in number ("a significant changes", "these new version"), a possessive where the subject belongs ("Your can check"), two determiners in a row ("the some roads"), or a noun where a second verb belongs ("to watch and photography wildlife"), is left over from an edit that fixed one word and not the other. The reader stumbles, and the document looks rushed. Only forms with one reading are counted; nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these" (which can stand alone), and nouns that modify another noun ("a sales team") are not.

→ Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant).
→ Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant). For a noun where a verb belongs, write the verb ("photography" becomes "photograph").

Relax this rule: npx chaffjs relax agreement-slip

Expand All @@ -53,9 +53,9 @@ booking-email.md business/email · English genre from --genre
⚠ Words that do not agree

"a significant changes" mixes singular and plural
A determiner and a noun that differ in number ("a significant changes", "these new version"), a possessive where the subject belongs ("Your can check"), or two determiners in a row ("the some roads"), is left over from an edit that fixed one word and not the other. The reader stumbles, and the document looks rushed. Only forms with one reading are counted; nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these" (which can stand alone), and nouns that modify another noun ("a sales team") are not.
A determiner and a noun that differ in number ("a significant changes", "these new version"), a possessive where the subject belongs ("Your can check"), two determiners in a row ("the some roads"), or a noun where a second verb belongs ("to watch and photography wildlife"), is left over from an edit that fixed one word and not the other. The reader stumbles, and the document looks rushed. Only forms with one reading are counted; nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these" (which can stand alone), and nouns that modify another noun ("a sales team") are not.

→ Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant).
→ Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant). For a noun where a verb belongs, write the verb ("photography" becomes "photograph").

Relax this rule: npx chaffjs relax agreement-slip

Expand Down Expand Up @@ -114,9 +114,9 @@ $ npx chaffjs explain agreement-slip --genre business/email

Words that do not agree (agreement-slip)

A determiner and a noun that differ in number ("a significant changes", "these new version"), a possessive where the subject belongs ("Your can check"), or two determiners in a row ("the some roads"), is left over from an edit that fixed one word and not the other. The reader stumbles, and the document looks rushed. Only forms with one reading are counted; nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these" (which can stand alone), and nouns that modify another noun ("a sales team") are not.
A determiner and a noun that differ in number ("a significant changes", "these new version"), a possessive where the subject belongs ("Your can check"), two determiners in a row ("the some roads"), or a noun where a second verb belongs ("to watch and photography wildlife"), is left over from an edit that fixed one word and not the other. The reader stumbles, and the document looks rushed. Only forms with one reading are counted; nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these" (which can stand alone), and nouns that modify another noun ("a sales team") are not.

How to fix: Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant).
How to fix: Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant). For a noun where a verb belongs, write the verb ("photography" becomes "photograph").

Levels (there is no limit to count to; a level sets how a finding is marked):
strict error
Expand Down
190 changes: 190 additions & 0 deletions text/docs/samples/en/inline-triad.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
<!-- chaff-sample
rule: inline-triad
genre: blog/essay
file: cooking.md
-->

# Threes strung on commas (`inline-triad`)

**Where it helps:** essays, blog posts, newsletters. Any prose drafted with an AI that keeps reaching for three.

## Original

```markdown chaff-before
# Learning to cook late

For years my idea of dinner was pasta with sauce from a jar.
At thirty I decided that had to change, and I bought a pan that was not already scratched.

I started with simple things: scrambled eggs, roasted vegetables, a basic tomato soup.
I burned the garlic more often than I can count, and the smoke alarm learned my schedule.
Most dishes, I noticed, begin the same way: an onion, some garlic, a little oil.
After a month I stopped reading the recipe line by line and began to taste as I went.

What changed most was the evening itself.
Instead of scrolling while I waited for a delivery, I was chopping, stirring, paying attention.
I forgot about work.
I thought about whether the onions were ready, and whether the soup needed more salt.

Later I started asking friends over for dinner, which I had always avoided.
The meals were not perfect.
But people do not really come for the food.
They come for the table, the conversation, the feeling of being cared for.
Cooking gave me a way to offer that, and it still does on most weeknights.

I am still not a great cook.
The list of failures is much longer, and I keep adding to it every month.
But I no longer feel that cooking is something I missed.
It is something I am learning slowly, one meal at a time, in a small kitchen.
If you think it is too late to learn something new, I would gently suggest that it is not.
Being a beginner as an adult is uncomfortable, but there is a quiet pleasure in it as well.
```

## What chaff says

```text chaff-output
$ npx chaffjs --no-guide --genre blog/essay cooking.md

cooking.md blog/essay · English genre from --genre

─── line 6 ───────────────────────────────────────────────────

I started with simple things: scrambled eggs, roasted vegetables, a basic tomato soup.

· Threes strung on commas

"scrambled eggs, roasted vegetables, a basic tomato soup" and other threes strung on commas: 14 per 1000 words (limit 3)
Generated prose keeps stringing three short phrases on commas with no "and" between them: "the table, the conversation, the feeling of being cared for". Three feels complete, so two things become three and four become three. Once is a turn of phrase; again and again, the pattern shows more than the content.

→ Keep three only where there really are three. Drop the item added to make three, and join the rest with "and".

Relax this rule: npx chaffjs relax inline-triad


─── line 8 ───────────────────────────────────────────────────

Most dishes, I noticed, begin the same way: an onion, some garlic, a little oil.

· Threes strung on commas

"an onion, some garlic, a little oil" and other threes strung on commas: 14 per 1000 words (limit 3)
Generated prose keeps stringing three short phrases on commas with no "and" between them: "the table, the conversation, the feeling of being cared for". Three feels complete, so two things become three and four become three. Once is a turn of phrase; again and again, the pattern shows more than the content.

→ Keep three only where there really are three. Drop the item added to make three, and join the rest with "and".

Relax this rule: npx chaffjs relax inline-triad


─── line 12 ──────────────────────────────────────────────────

Instead of scrolling while I waited for a delivery, I was chopping, stirring, paying attention.

· Threes strung on commas

"I was chopping, stirring, paying attention" and other threes strung on commas: 14 per 1000 words (limit 3)
Generated prose keeps stringing three short phrases on commas with no "and" between them: "the table, the conversation, the feeling of being cared for". Three feels complete, so two things become three and four become three. Once is a turn of phrase; again and again, the pattern shows more than the content.

→ Keep three only where there really are three. Drop the item added to make three, and join the rest with "and".

Relax this rule: npx chaffjs relax inline-triad


─── line 19 ──────────────────────────────────────────────────

They come for the table, the conversation, the feeling of being cared for.

· Threes strung on commas

"They come for the table, the conversation, the feeling of being cared for" and other threes strung on commas: 14 per 1000 words (limit 3)
Generated prose keeps stringing three short phrases on commas with no "and" between them: "the table, the conversation, the feeling of being cared for". Three feels complete, so two things become three and four become three. Once is a turn of phrase; again and again, the pattern shows more than the content.

→ Keep three only where there really are three. Drop the item added to make three, and join the rest with "and".

Relax this rule: npx chaffjs relax inline-triad


────────────────────────────────────────────────────────────

4 notes All judged by machine
(the same text gives the same result every time)

The text was not changed. Fixing it is the writer's job.
```

## Corrected

```markdown chaff-after
# Learning to cook late

For years my idea of dinner was pasta with sauce from a jar.
At thirty I decided that had to change, and I bought a pan that was not already scratched.

I started with scrambled eggs and a basic tomato soup.
I burned the garlic more often than I can count, and the smoke alarm learned my schedule.
Most dishes, I noticed, begin the same way, with an onion and a little oil.
After a month I stopped reading the recipe line by line and began to taste as I went.

What changed most was the evening itself.
Instead of scrolling while I waited for a delivery, I was chopping and paying attention.
I forgot about work.
I thought about whether the onions were ready, and whether the soup needed more salt.

Later I started asking friends over for dinner, which I had always avoided.
The meals were not perfect.
But people do not really come for the food.
They come for the conversation and the feeling of being cared for.
Cooking gave me a way to offer that, and it still does on most weeknights.

I am still not a great cook.
The list of failures is much longer, and I keep adding to it every month.
But I no longer feel that cooking is something I missed.
It is something I am learning slowly, one meal at a time, in a small kitchen.
If you think it is too late to learn something new, I would gently suggest that it is not.
Being a beginner as an adult is uncomfortable, but there is a quiet pleasure in it as well.
```

## How it was fixed

The draft lists things in threes again and again, each time with commas and no "and": three first dishes, three things in the pan, three things done at the stove, three reasons friends come over.
One such run is a turn of phrase. Four in a short essay make the pattern louder than what the writer is saying.

The fix asks of each run whether there really are three things.
Where one item only filled the slot (the roasted vegetables, the garlic beside the onion, the stirring beside the chopping, the table beside the conversation), it goes, and the two that are left are joined with "and".

## Settings

The rule counts three short phrases strung on commas with no "and" or "or", per 1000 words.
A list joined with "and" is not counted, since human prose writes those as often.
Runs holding a figure, capitalised names and titles, one word said again (old, old, old), runs inside a list or quotation marks, and runs of four or more are left out.
A document shorter than 200 words, or with fewer than three runs, is not measured.

```yaml chaff-settings
rules:
inline-triad: relaxed
```

The rule runs only on English.

```text chaff-explain
$ npx chaffjs explain inline-triad --genre blog/essay

Threes strung on commas (inline-triad)

Generated prose keeps stringing three short phrases on commas with no "and" between them: "the table, the conversation, the feeling of being cared for". Three feels complete, so two things become three and four become three. Once is a turn of phrase; again and again, the pattern shows more than the content.

How to fix: Keep three only where there really are three. Drop the item added to make three, and join the rest with "and".

Rewrite depth: light (words and sentences; the structure and the voice stay). With a shallower chaff fix-plan --depth, the plan names this rule without fixing it.

Levels:
strict up to 2 runs of three per 1000 words
→ normal up to 3 runs of three per 1000 words
relaxed up to 5 runs of three per 1000 words
off not checked

Now: normal.

Change it: npx chaffjs relax inline-triad --why "reason"
```

[All samples](README.md)
Loading
Loading