Example sentence: 彼はトルコを2ヶ月間訪問するつもりです
Example sentence: 彼はトルコを2ヵ月間訪問するつもりです
When you attempt to generate furigana for the above sentences, it will give you a crash about how the regular expression didn't find results. Looking at the output from Mecab, the above sentence is:
For the ヶ月 portion, the generated regular expression out of kanjiToRegex is ^ゖ(.+?)$, which is correct not to match against the reading that Mecab is giving (かげつ).
This bug happens when a small kana character has a non-small reading. As such, this applies to both ヶ月 and ヵ月, though this might apply to other words as well (none come to mind, but that doesn't mean they don't exist).
Example sentence: 彼はトルコを2ヶ月間訪問するつもりです Example sentence: 彼はトルコを2ヵ月間訪問するつもりです
When you attempt to generate furigana for the above sentences, it will give you a crash about how the regular expression didn't find results. Looking at the output from Mecab, the above sentence is:
For the
ヶ月
portion, the generated regular expression out ofkanjiToRegex
is^ゖ(.+?)$
, which is correct not to match against the reading that Mecab is giving (かげつ
).This bug happens when a small kana character has a non-small reading. As such, this applies to both ヶ月 and ヵ月, though this might apply to other words as well (none come to mind, but that doesn't mean they don't exist).