All rules

One and two spaces between sentences mixed

sentence-spacing-consistencyon by default (info)English

One space between sentences in some places and two in others

Example

Flagged
We met. We talked. We agreed. We left.
What chaff prints
1:30 2 spaces after this sentence, where the document usually leaves 1 (1 of 3)
Fixed
We met. We talked. We agreed. We left.
What chaff prints
no finding

How to fix

Match the spacing the rest of the document uses.

Why it matters

Sentences separated by one space in some places and two in others make a document look pasted together. chaff does not pick a side; it counts only breaks between sentences on one line and points at the less common way.

What it does not flag

Only the space after a sentence ending in a period, question or exclamation mark, before the next sentence on the same line. Spaces at the end of a line (a Markdown line break) are not counted.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: sentence-spacing-consistency — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax sentence-spacing-consistency --why "reason"
Turn it off for the team (chaff.yaml)
rules: sentence-spacing-consistency: off
Technical details
Layer
L1
Status
stable
Severity
info
Languages
en
Suited to
business, technical, blog, legal, docs, academic, literature, speech

Levels

Set a level for this rule under rules in chaff.yaml. With nothing set, it runs at the level its genre gives it (see By genre below).

strictreported once the less common spacing appears 1 times
normalreported once the less common spacing appears 1 times
relaxedreported once the less common spacing appears 3 times

By genre

Runs by default in
technical/spec, technical/readme, blog/tech, blog/essay, blog/owned-media, business/proposal, business/report, business/email, business/press-release, business/meeting-notes, legal/contract, legal/statute, legal/judgment, legal/patent, docs/manual, docs/faq, docs/glossary, academic/paper, literature/fiction, literature/essay, literature/poetry, literature/play, speech/address, speech/transcript

Genres

Message

{spaces} spaces after this sentence, where the document usually leaves {usual} ({count} of {of})

Sentences are spaced two ways in this document ({spaced} with two spaces, {touching} with one)

Rewrite depth (chaff fix-plan --depth): light — words and sentences; the structure and the voice stay

This page is built from the rule's definition file:packages/chaff/rules/sentence-spacing-consistency.yaml