All rules

British and American spellings are mixed

spelling-consistencyon by default (info)English

British and American spellings (colour and color) mixed in one document

Example

Flagged
The colour of the logo is blue. The colour of the button is green. The color of the link is red.
What chaff prints
1:72 "color" here, where the document usually spells it "colour" (1 of 3)
Fixed
The colour of the logo is blue. The colour of the button is green. The colour of the link is red.
What chaff prints
no finding

How to fix

Match the spelling the rest of the document uses. If the team has decided, write it in the style guide.

Why it matters

British and American spellings (colour and color, centre and center, organise and organize) are both correct English. What reads badly is mixing them in one document, which makes search treat them as different words and makes another writer's paragraph stand out. chaff does not decide which is right; it points at whichever the document uses less. -ise and -ize are compared on their own, since Oxford spelling writes colour with organize. A word capitalised in the middle of a sentence (Labor Day, World Health Organization) is a name and is not counted, nor is anything in quotation marks or a word quoted on its own (‘organize’). The literature preset turns it off, since old spelling belongs to its time. It says nothing when the minority is more than a third, since the document then mixes them on purpose (quotations, fixed terms).

What it does not flag

Neither spelling is called right. -ise and -ize are compared on their own, so Oxford spelling (colour with organize) is consistent. Names capitalised mid-sentence (Labor Day) and quotations are not counted.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: spelling-consistency — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax spelling-consistency --why "reason"
Turn it off for the team (chaff.yaml)
rules: spelling-consistency: off
Technical details
Layer
L3
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 when the minority spelling is 49% of its group or less
normalreported when the minority spelling is 34% of its group or less
relaxedreported when the minority spelling is 20% of its group or less

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, speech/address, speech/transcript
Turned off by the genre in
literature/fiction, literature/essay, literature/poetry, literature/play

Genres

Message

"{matched}" here, where the document usually spells it "{other}" ({count} of {of})

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