Skip to content

A Java library to converts between Japanese Hiragana, Katakana, and Romaji scripts.

Notifications You must be signed in to change notification settings

MihailsKuzmins/moji4j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Romaji and Kana Conversion

val converter = new KanaRepo(context)

converter.romajiToHiragana("Hiragana") // ひらがな
converter.romajiToKatakana("Katakana") // カタカナ
converter.kanaToRomaji("ひらがな") // hiragana
converter.kanaToRomaji("カタカナ") // katakana

Romaji, Kana, and Kanji Detection

val detector = new KanaKanjiDetector();

detector.hasKanji("まっ暗") // true
detector.hasKanji("まっしろ") // false
detector.hasKana("ウソ付き") // true
detector.hasKana("東京") // false
detector.hasRomaji("モデル XYZ") // true
detector.hasRomaji("フルーツ") // false

About

A Java library to converts between Japanese Hiragana, Katakana, and Romaji scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 93.3%
  • Ruby 6.7%