Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 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
3 changes: 2 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: 269 / 269

## Readability

Expand Down Expand Up @@ -314,6 +314,7 @@ 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 |
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)
5 changes: 3 additions & 2 deletions text/packages/chaff/README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ npx chaffjs ai-score article.md 低・中・高と、出てい
npx chaffjs ai-score article.md --format json 同じものを JSON で
```

短すぎる文書は測らず、そう言います。目印の一つが `email-stock-courtesy` で、英文のメールに「I hope this email finds you well」「I apologize for any inconvenience」のような決まり文句が 2 つ以上重なった所を言います。`honesty-marker` は、「正直、」「正直に言うと」「if I'm being honest」のように本音だと前置きする言い回しを、ブログと業務文書では 1 つでも言います。もう一つの例が `closing-exhortation` で、「ぜひ〜してみてください」「きっと〜はずです」のように結びで読み手を励ます文が 2 つ以上重なった所を言います。`cold-open` は、状況も例もないまま、短い願い(「〜に任せたい。」)、前の文の語の引き直し(この「だいたい」が)、難所の予告(「それだけのことに見えて」)が書き出しに重なった所を言います。`unprompted-denial` は、「〜の話ではありません」「〜の材料になりません」のように、誰も言っていない前提を打ち消して終わる文が多い所を言います。
短すぎる文書は測らず、そう言います。目印の一つが `email-stock-courtesy` で、英文のメールに「I hope this email finds you well」「I apologize for any inconvenience」のような決まり文句が 2 つ以上重なった所を言います。`honesty-marker` は、「正直、」「正直に言うと」「if I'm being honest」のように本音だと前置きする言い回しを、ブログと業務文書では 1 つでも言います。`inline-triad` は、「the table, the conversation, the feeling of being cared for」のように、短い句を三つ、and を入れずにカンマだけで並べる形が何度も出る所を言います(英語の文書だけ)。もう一つの例が `closing-exhortation` で、「ぜひ〜してみてください」「きっと〜はずです」のように結びで読み手を励ます文が 2 つ以上重なった所を言います。`cold-open` は、状況も例もないまま、短い願い(「〜に任せたい。」)、前の文の語の引き直し(この「だいたい」が)、難所の予告(「それだけのことに見えて」)が書き出しに重なった所を言います。`unprompted-denial` は、「〜の話ではありません」「〜の材料になりません」のように、誰も言っていない前提を打ち消して終わる文が多い所を言います。

## AI の評価に使う(chaff grade)

Expand Down Expand Up @@ -367,7 +367,8 @@ rule the rewrite raised; `npx chaffjs test <file> --checks ai-tells` asks about
**AI score.** `chaff ai-score <file>` — a quick AI-likeness score (low, medium, high): counts the signs of generated
text that human documents of the same genre rarely show. It is not a verdict on whether AI wrote it. One sign is
`email-stock-courtesy`: two or more stock email courtesies in one English email. `honesty-marker`: a sentence flagged as
candid ("Honestly,", 「正直、」), reported alone in blog posts and business documents.
candid ("Honestly,", 「正直、」), reported alone in blog posts and business documents. `inline-triad`: three short
phrases strung on commas with no "and", again and again (English only).
`closing-exhortation`: a closing that cheers the reader on two or more times. `unprompted-denial`: many sentences that
deny a premise nobody stated ("This isn't about tooling.").

Expand Down
3 changes: 2 additions & 1 deletion text/packages/chaff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ A quick AI-likeness reading: low, medium or high. It counts the signs of generat
human documents of the same genre rarely show. It is not a verdict on whether AI wrote it, and
it is not meant to be one. Among the signs: `email-stock-courtesy`, two or more stock email courtesies
("I hope this email finds you well", "I apologize for any inconvenience") in one English email; `honesty-marker`, a sentence flagged
as candid ("Honestly,", "if I'm being honest", 「正直、」), reported alone in blog posts and business documents; `closing-exhortation`, a closing that cheers
as candid ("Honestly,", "if I'm being honest", 「正直、」), reported alone in blog posts and business documents; `inline-triad`, three short phrases strung on commas with no "and",
again and again ("the table, the conversation, the feeling of being cared for"; English only); `closing-exhortation`, a closing that cheers
the reader on two or more times ("You've got this", 「ぜひ〜してみてください」); `cold-open`, an opening that piles a bare wish, a word of
the previous sentence repeated in quotes, and a teaser ("Sounds simple. It isn't.") before any situation or example; and
`unprompted-denial`, many sentences that deny a premise nobody stated ("This isn't about tooling.", 「〜の話ではありません」).
Expand Down
Loading
Loading