Skip to content

fix: the Japanese adapter reads 学びや before a noun as 学び and the coordinating や - #2996

Open
isamu wants to merge 1 commit into
mainfrom
fix/no-doubled-joshi-manabiya
Open

isamu wants to merge 1 commit into
mainfrom
fix/no-doubled-joshi-manabiya

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

IPADIC holds 学びや as one noun (学び舎). In a coordination such as 学びや成長の機会 the や then disappears from the tokens, and no-doubled-joshi reads the の on both sides as one genitive chain.

The Japanese adapter gets a small repair pass (fused-ya.ts, beside counter-tsu.ts and compound-noun-ending.ts): a noun listed in the new lexicon fused-ya-noun is split into its stem noun and the coordinating や when a content noun or a continuative verb (気づき) follows it directly. Before a particle, a mark, a suffix or at the end (学びやで, 学びやの) it stays the noun 学び舎. The word list is data; only 学びや is listed.

Items to Confirm / Review

  • The repair changes tokens for every rule, not only no-doubled-joshi. On the judged corpus no finding judged correct was lost and no new finding appeared; yarn corpus and yarn planted are unchanged.
  • The only judged entry that moves is the one this fixes (the no-doubled-joshi false positive in the onboarding handbook case).
  • Tests use self-written sentences only (test/test_fused_ya.ts).

Refs #2963

🤖 Generated with Claude Code
work in lab

…inating や

IPADIC holds 学びや as one noun (学び舎), so in 学びや成長の機会 the や vanished and
no-doubled-joshi counted one の chain across the coordination.

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