Skip to content
Merged
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 @@ -9039,6 +9039,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
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 @@ -320,6 +320,7 @@ Traits common in generated text. None of them alone says the text was generated;
| [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
186 changes: 186 additions & 0 deletions text/docs/samples/en/section-reflection-ending.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
<!-- chaff-sample
rule: section-reflection-ending
genre: blog/essay
file: post.md
-->

# Every section closes on a personal reflection (`section-reflection-ending`)

**Where it helps:** personal blog posts, trip and event reports, newsletter columns. Especially a draft written to a prompt.

## Original

```markdown chaff-before
# Cycling to work

## Mornings

The ride to the station takes about ten minutes. I think the fresh air is the best part of the day.

## Evenings

The way home has more hills, and my legs ached the first week. I feel it has become good exercise.

## Rainy days

On rainy days I take the train. I believe not forcing it is what keeps a habit going.

## Money

I save about eighty dollars a month on the train pass. I think small savings add up.
```

## What chaff says

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

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

─── line 5 ───────────────────────────────────────────────────

The ride to the station takes about ten minutes.

⚠ Monotonous sentence rhythm

Sentence length varies by only 24% (want 30%)
When every sentence is the same length, the reader loses the rhythm. It is also a common shape of generated text.

→ Mix in short sentences. Splitting one in two is enough.

Relax this rule: npx chaffjs relax sentence-rhythm


─── line 5 ───────────────────────────────────────────────────

I think the fresh air is the best part of the day.

· Every section closes on a personal reflection

"I think" and other reflections close 4 of 4 sections (100%, 50% needed)
Closing a section with "I think ..." or "I feel ..." is ordinary in essays and reports. When nearly every section closes that way, it reads as a template that adds a line of feeling after the content, a shape common in generated text.

→ Drop the reflection, or close the section on what it found (a number, what happened, what comes next). Keep a reflection only where it matters most.

Relax this rule: npx chaffjs relax section-reflection-ending


─── line 9 ───────────────────────────────────────────────────

I feel it has become good exercise.

· Every section closes on a personal reflection

"I feel" and other reflections close 4 of 4 sections (100%, 50% needed)
Closing a section with "I think ..." or "I feel ..." is ordinary in essays and reports. When nearly every section closes that way, it reads as a template that adds a line of feeling after the content, a shape common in generated text.

→ Drop the reflection, or close the section on what it found (a number, what happened, what comes next). Keep a reflection only where it matters most.

Relax this rule: npx chaffjs relax section-reflection-ending


─── line 13 ──────────────────────────────────────────────────

I believe not forcing it is what keeps a habit going.

· Every section closes on a personal reflection

"I believe" and other reflections close 4 of 4 sections (100%, 50% needed)
Closing a section with "I think ..." or "I feel ..." is ordinary in essays and reports. When nearly every section closes that way, it reads as a template that adds a line of feeling after the content, a shape common in generated text.

→ Drop the reflection, or close the section on what it found (a number, what happened, what comes next). Keep a reflection only where it matters most.

Relax this rule: npx chaffjs relax section-reflection-ending


─── line 17 ──────────────────────────────────────────────────

I think small savings add up.

· Every section closes on a personal reflection

"I think" and other reflections close 4 of 4 sections (100%, 50% needed)
Closing a section with "I think ..." or "I feel ..." is ordinary in essays and reports. When nearly every section closes that way, it reads as a template that adds a line of feeling after the content, a shape common in generated text.

→ Drop the reflection, or close the section on what it found (a number, what happened, what comes next). Keep a reflection only where it matters most.

Relax this rule: npx chaffjs relax section-reflection-ending


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

1 warning, 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.
```

## Revised

```markdown chaff-after
# Cycling to work

## Mornings

The ride to the station takes about ten minutes. I leave home five minutes later.

## Evenings

The way home has more hills, and my legs ached the first week. Not now.

## Rainy days

On rainy days I take the train, which last month meant six days out of the twenty I worked.

## Money

I save about eighty dollars a month on the train pass. The bike pays for itself in a year and a half.
```

## How to fix

Each of the four sections closes on "I think ...", "I feel ..." or "I believe ...".
Closing one section on a reflection is ordinary; closing every one the same way reads as a template that adds a line of feeling after the content.

The revision replaces each reflection with what the section found: the time of leaving, when the aching stopped, the number of rainy days, how long the bike takes to pay for itself.
If a reflection matters, keep it in the one section where it matters most.

## Settings

It reports once half or more of the sections close on a reflection.

```yaml chaff-settings
rules:
section-reflection-ending: strict
```

`strict` reports from 40%, `relaxed` from 67%.
A document with fewer than 4 sections that hold a paragraph is not measured.

```text chaff-explain
$ npx chaffjs explain section-reflection-ending --genre blog/essay

Every section closes on a personal reflection (section-reflection-ending)

Closing a section with "I think ..." or "I feel ..." is ordinary in essays and reports. When nearly every section closes that way, it reads as a template that adds a line of feeling after the content, a shape common in generated text.

How to fix: Drop the reflection, or close the section on what it found (a number, what happened, what comes next). Keep a reflection only where it matters most.

Levels:
strict reported when 40% or more of the sections close on a reflection
→ normal reported when 50% or more of the sections close on a reflection
relaxed reported when 67% or more of the sections close on a reflection
off not checked

Options (set under options in chaff.yaml):
min_sections: 4 (default)
The fewest sections measured. With few sections, one or two reflective closings make a large share, and a person's writing is reported too

Set one: write options: { section-reflection-ending: { <name>: <value> } } in chaff.yaml

Now: normal.

Change it: npx chaffjs relax section-reflection-ending --why "reason"
```

[All samples](README.md)
3 changes: 2 additions & 1 deletion text/docs/samples/ja/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ chaff が見つけるまちがいを、ルールごとに一つずつ見本に

English samples: [../en/README.md](../en/README.md)

見本のあるルール: 282 / 282
見本のあるルール: 283 / 283

## 読みやすさ

Expand Down Expand Up @@ -333,6 +333,7 @@ English samples: [../en/README.md](../en/README.md)
| [段落の長さが揃いすぎている](paragraph-length-variance.md)(`paragraph-length-variance`) | どの段落もほぼ同じ長さで、型に流しこんだように見える所 |
| [3 項目の箇条書きばかり](rule-of-three.md)(`rule-of-three`) | 箇条書きがどれも三つの項目で、数を合わせて並べたように見える所 |
| [節の長さが揃いすぎている](section-length-uniformity.md)(`section-length-uniformity`) | どの節もほぼ同じ長さに埋めてあり、ひな形を埋めたように見える所 |
| [どの節も所感の文で閉じる](section-reflection-ending.md)(`section-reflection-ending`) | 「〜と思います」「〜と感じています」のように、節のほとんどが所感の文で閉じている所 |
| [文の長さが単調](sentence-rhythm.md)(`sentence-rhythm`) | どの文もほぼ同じ長さで、読むリズムが単調な所 |
| [決まった接ぎで始まる文が多い](stock-transition.md)(`stock-transition`) | 「さらに」「加えて」「このように」で始まる文が多く、何がどう繋がるのかを言わずに並べている所 |
| [翻訳調が多い](translationese-density.md)(`translationese-density`) | 「〜を可能にする」「重要な役割を果たす」「あなたは」のような、英語の構文を写した言い回しが多い所 |
Expand Down
Loading
Loading