ib-romaji
A fast Japanese romanizer.
See Romanization of Japanese for what is romaji.
Features
- Support characters with multiple readings (i.e. heteronyms, 同形異音語).
- Support the following romanization systems:
- Hepburn romanization system
- Hepburn's convenient IME variant:
n'andtch*can be alternatively written asnnandcch*respectively.
- Support handling of
n'(n apostrophe, e.g.n'yaforんや). - Support handling of 々(noma).
Usage
use HepburnRomanizer;
let romanizer = default;
let mut romajis = Vecnew;
romanizer.romanize_and_try_for_each;
assert_eq!;
assert_eq!;
Comparison with other crates
-
kakasi's dictionary is a bit outdated and it's licensed under GPL-3. Whileib-romajiuses the latest JMdict and licensed under MIT.ib-romajialso supports querying all possible romajis of a word.
The following crates are kana (仮名) only. They don't support kanjis like 日本語: