Skip to content

fix: max-kanji-continuous does not count a run followed by its reading in hiragana - #2997

Open
isamu wants to merge 1 commit into
mainfrom
fix/max-kanji-continuous-reading-bracket
Open

isamu wants to merge 1 commit into
mainfrom
fix/max-kanji-continuous-reading-bracket

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

A kanji run with its whole reading in round brackets right after it (四国八十八箇所巡礼(しこくはちじゅうはちかしょじゅんれい)) is one name the writer gives together with its pronunciation, like a name that fills 「」. It is no longer counted, and the same name is not counted where the document uses it again, as with the other bracketed names. A bracket holding other words, or a reading of only part of the run (fewer kana than kanji), still counts.

The check is givesReading in kanji-name-edge.ts, joined with the gloss-bracket check (bracketNames) in fillsQuote. Both READMEs are unaffected; the rule YAML's not_flagged (ja and en) and its header comment describe the new case.

Items to Confirm / Review

  • Only hiragana readings count (with spaces or ・ allowed); a katakana reading is still counted. That keeps the change narrow; widen it only if a corpus case asks for it.
  • The reading must have at least one kana per kanji in the run, so a bracket that reads only the last word (〜巡礼(じゅんれい)) does not exempt the whole run.
  • Judged corpus (Japanese documents): no correct finding lost, no new finding; yarn corpus and yarn planted unchanged.

Refs #2978 (the issue's weasel-word entry is already settled on main).

🤖 Generated with Claude Code
work in lab

…g in hiragana

A run with its whole reading in round brackets right after it (四国八十八箇所巡礼(しこくはちじゅうはちかしょじゅんれい))
is one name the writer gives with its pronunciation, as a name filling 「」 is; it is not counted, and the same name is
not counted where the document uses it again. A bracket that holds other words, or reads only part of the run, still counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant