All rules

Half-width katakana

hankaku-kanaon by defaultJapanese

Half-width katakana such as "アイウ", and half-width Japanese punctuation

Example

Flagged
申込書はメールで送ってください。
What chaff prints
1:5 半角の片仮名「メール」があります(全角は「メール」)
Fixed
申込書はメールで送ってください。
What chaff prints
no finding

How to fix

Write it in full-width katakana. If it quotes a system's display as it is, put it in brackets.

Why it matters

Half-width katakana such as "アイウ" is left over from text pasted out of an old system. It is the same word as the full-width "アイウ" but a search treats it as a different one, and a screen reader and the character widths do not match. Half-width Japanese punctuation, brackets and the middle dot (。「」、・) are the same. Code, link text and a name quoted in brackets or quotation marks (a label copied from a screen) are not counted.

What it does not flag

Code, link text and a name quoted in brackets or quotation marks (a screen label such as 「カナ表示」) are not counted.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: hankaku-kana — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax hankaku-kana --why "reason"
Turn it off for the team (chaff.yaml)
rules: hankaku-kana: off
Technical details
Layer
L1
Status
stable
Severity
warning
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).

stricterror
normalwarning
relaxedinfo

This rule has no limit to count to. A level sets how a finding is marked: relaxed keeps the finding and marks it a step lower.

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

Half-width katakana "{kana}" (full-width: "{fullwidth}")

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