All rules

Full-width and half-width brackets mixed

bracket-width-consistencyon by default (info)Japanese

Full-width and half-width brackets mixed in one Japanese document

Example

Flagged
会議(定例)は月曜です。報告(月次)は金曜です。資料(最新版)を配ります。
What chaff prints
1:27 括弧を「(」と書いています(この文書はふつう「(」。6 箇所のうち 2 箇所が違う) 1:31 括弧を「)」と書いています(この文書はふつう「)」。6 箇所のうち 2 箇所が違う)
Fixed
会議(定例)は月曜です。報告(月次)は金曜です。資料(最新版)を配ります。
What chaff prints
no finding

How to fix

Match the way the rest of the document writes it.

Why it matters

In a Japanese document, parentheses written both full-width () and half-width (), or square brackets written both [] and [], make it look pasted together. chaff does not pick a side; it counts only brackets touching Japanese text and points at the less common way.

What it does not flag

Only brackets touching Japanese text, parentheses and square brackets compared apart; Markdown links are not counted, and note markers ([1], [^1]) are compared only with each other. Brackets in English text (f(x)), brackets in a formula (賃金 × (1 - 時間 ÷ 月平均)), code, 「」 quotations, and the title of an outside page quoted by a link at a line's head (- [Title (draft)](https://…)) are not counted.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: bracket-width-consistency — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax bracket-width-consistency --why "reason"
Turn it off for the team (chaff.yaml)
rules: bracket-width-consistency: off
Technical details
Layer
L1
Status
stable
Severity
info
Languages
ja
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, docs/manual, docs/faq, docs/glossary, academic/paper, literature/fiction, literature/essay, literature/poetry, literature/play, speech/address, speech/transcript

Genres

Message

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

Brackets like "{mark}" are written two ways in this document ({spaced} full-width, {touching} half-width)

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/bracket-width-consistency.yaml