All rules

The final ー of katakana words is inconsistent

katakana-long-vowelon by defaultJapanese

A katakana word written both with and without its final ー (コンピューター, コンピュータ)

Example

Flagged
新しいコンピューターを買いました。古いコンピュータは来月捨てます。
What chaff prints
1:20 「コンピュータ」と「コンピューター」が混ざっています(この語は 2 回のうち 1 回が「コンピュータ」)
Fixed
新しいコンピューターを買いました。古いコンピューターは来月捨てます。
What chaff prints
no finding

How to fix

Change it to "the other way of writing it". If the team has decided which way, set ending under options in chaff.yaml, and chaff checks against that instead of the document's usual way. List a word that must stay as it is (a product's name) under except in options, or under names.

Why it matters

A katakana loanword can be written with or without its final long-vowel mark (コンピューター / コンピュータ). Both are right; what reads badly is mixing them in one document, which makes a reader wonder whether they differ and makes a search miss one. With no setting chaff points only at a word written both ways, and does not compare different words (サーバー and ブラウザ). Setting ending under options to drop or keep points at every word written the other way. Morae are counted before the final ー, as コ・ン・ピュ・ー・タ, five (a small ャュョァィゥェォ joins the kana before it; ッ, ン and a ー inside the word are one each), as JIS Z 8301:2011 Table G.3 counts. Words the dictionary knows as proper nouns (ディズニー) and the names under names in chaff.yaml are left alone.

What it does not flag

Different words (サーバー and ブラウザ) are not compared. Words of one mora before the final ー (カー), words the dictionary knows as proper nouns and the names under names in chaff.yaml are left alone. A word that becomes another word with a final ー (フリ and フリー, タブ (tab) and タブー (taboo), ベタ and ベター) is not compared, nor asked for a ー by keep, when it is in the long-vowel-distinct word list. drop leaves words ending in ュー, エー, イー and the like alone (メニュー, グレー, コピー).

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: katakana-long-vowel — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax katakana-long-vowel --why "reason"
Turn it off for the team (chaff.yaml)
rules: katakana-long-vowel: off
Technical details
Layer
L3
Status
stable
Severity
warning
Languages
ja
Suited to
business, blog, technical, legal, docs, academic, literature, speech
Reads from the document
pos

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 1 words go the other way
normalreported once 1 words go the other way
relaxedreported once 3 words go the other way

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 final ー of "{matched}" differs from the rest ("{preferred}")

"{matched}" and "{preferred}" are both used ({count} of {of} are "{matched}")

Write "{preferred}", without the final ー ({min_morae} morae or more)

Write "{preferred}", with the final ー

Sources

This page is built from the rule's definition file:packages/chaff/rules/katakana-long-vowel.yaml