All rules

A Latin letter left by the input method

ime-residueon by defaultJapanese

A stray Latin letter left inside a Japanese word by the input method

Example

Flagged
この資料はとてもおもしrおいです。
What chaff prints
1:12 日本語の語の中に英字「r」が一字だけあります(変換し損ねた跡)
Fixed
この資料はとてもおもしろいです。
What chaff prints
no finding

How to fix

Delete the letter and retype the word (おもしrおい → おもしろい).

Why it matters

A single Latin letter inside a Japanese word (おもしrおい for おもしろい) is a key pressed in romaji input that never became kana. The reader stops at the word, and search does not find it. It is a typing slip, not a style.

What it does not flag

Capitals (A社, Bさん), runs of two or more letters (while文, note) and code are not reported. A letter followed by a particle (変数xが, まずxを, をxで) is read as the name of a variable, and a letter followed by a kanji (のx座標) is not reported either. A letter after katakana (サイズm, プランb) is read as a label, and paths (/docs/…) are not read. A lone vowel (eラーニング, iモード) is part of the word, since romaji input turns a vowel into kana at once and never leaves it behind.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: ime-residue — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax ime-residue --why "reason"
Turn it off for the team (chaff.yaml)
rules: ime-residue: 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

A lone Latin letter "{letter}" inside a Japanese word, left by the input method

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

Sources

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