All rules

Straight and curly quotes mixed

quote-style-consistencyon by default (info)English

Straight quotes (" ') and curly quotes (“ ” ’) mixed in one document

Example

Flagged
The "draft" is ready. The "final" is due. The “review” is next.
What chaff prints
1:47 The quote mark “ here, where the document usually writes " (2 of 6) 1:54 The quote mark ” here, where the document usually writes " (2 of 6)
Fixed
The "draft" is ready. The "final" is due. The "review" is next.
What chaff prints
no finding

How to fix

Match the form the rest of the document uses.

Why it matters

Straight quotes and apostrophes (" ') mixed with curly ones (“ ” ’) make a document look pasted together, and a search or replace finds only one kind. chaff does not pick a side; it points at the less common way in the document.

What it does not flag

Only marks touching a letter are counted, and code is skipped. Double and single quotes (apostrophes) are counted as separate kinds.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: quote-style-consistency — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax quote-style-consistency --why "reason"
Turn it off for the team (chaff.yaml)
rules: quote-style-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 way appears 1 times
normalreported once the less common way appears 1 times
relaxedreported once the less common way 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, academic/paper, literature/fiction, literature/essay, literature/poetry, literature/play, speech/address, speech/transcript
Turned off by the genre in
docs/manual, docs/faq, docs/glossary

Genres

Message

The quote mark {mark} here, where the document usually writes {usual} ({count} of {of})

Quote marks are written two ways in this document ({spaced} curly, {touching} straight)

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/quote-style-consistency.yaml