You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kana.IsKanji("減少") recognises that it has Kanji characters but KanaToRomaji does not translate to Romaji it just leaves it as Kanji, Go Playground link below:
Hi @marv72 yes, this library only converts between hiragana, katakana, and romaji. We built this many years ago for use in our Japanese dictionary https://nihongo.io. I suppose we only did hiragana/katakana support for purposes of speed -- kanji would require building a large data structure and would slow the library down.
We use this library on nihongo.io to detect whether a word is Latin-based, and if it is we convert it to hiragana and katakana and search:
kana.IsKanji("減少") recognises that it has Kanji characters but KanaToRomaji does not translate to Romaji it just leaves it as Kanji, Go Playground link below:
https://play.golang.org/p/qxeMAYoSqtk
So I can translate Hiragana characters but not Kanji characters, is that by design?
The text was updated successfully, but these errors were encountered: