TransWikia.com

Java library to transform kanji/katakana/hiragana to romaji

Software Recommendations Asked on December 22, 2021

The Japanese language is mostly a combination of 3 alphabets, and it can be transliterated to romaji (Latin script). There are various strategies, Revised Hepburn would be ideal here.

Example: ローマ字rōmaji

Requirements:

  • 100% pure Java library
  • Compatible with GNU-GPLv3

Such a library will most probably need to embed a lot of data to guess the pronunciations correctly as often as possible.

2 Answers

Jakaroma does this, and it is based on Kuromoji which is much better at kanji transliteration than Kakasi and even Mecab.

  • 100% Java
  • Open source: Apache 2 license
  • Size: 11 MB
  • Transliteration quality: High

Disclaimer: Maintained by me.

Answered by Nicolas Raoul on December 22, 2021

Kakasi Java does exactly this.
It also includes a command-line tool so that you can easily try it.

  • 100% Java
  • Open source: GNU-GPLv2 license
  • Size: 3.2 MB
  • Transliteration quality: Poor

Disclaimer: Maintained by me.

Note: Mecab is more accurate at guessing pronunciations but is not 100% Java unfortunately.

Answered by Nicolas Raoul on December 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP