aiktb / FuriganaMaker

🔳 A browser extension that adds furigana to Japanese text on any page, for learning kanji pronunciation.
https://furiganamaker.app
MIT License
75 stars 7 forks source link

Error in furigana creation #275

Closed ClotildeHenry closed 2 weeks ago

ClotildeHenry commented 2 weeks ago

Describe the bug

Some Kanji are not read the right way, actually I have an example with a reading that doesn't match at all:

image

一人 should be  ひとり and not いちにち

It's like the kanji is not recognized.

Reproduction

selection of a sentence in order to add furigana to it .... looking at all the kanji to be sure of the reading?

Expected behavior

each kanji with the appropriate reading (on yomi / kun yomi)

Browser

Chrome

System Info

No response

Additional context

No response

Validations

aiktb commented 2 weeks ago

This is a kuromoji parser bug that I cannot fix, and in fact kuromoji cannot guarantee the correctness of the analysis.

Example: https://takuyaa.github.io/kuromoji.js/demo/tokenize.html 私は一人で書いたら image