Class KatakanaRomanizer
java.lang.Object
org.apache.lucene.analysis.ja.completion.KatakanaRomanizer
Converts a Katakana string to Romaji using the pre-defined
Katakana-Romaji mapping rules. Internally, this repeatedly performs prefix match on the given
char sequence to the pre-built keystroke array until it reaches the end of the sequence, or there
are no matched keystrokes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KatakanaRomanizer
Returns the singleton instance ofKatakanaRomenizer
Translates a sequence of katakana to romaji.
-
Method Details
-
getInstance
Returns the singleton instance ofKatakanaRomenizer
-
romanize
Translates a sequence of katakana to romaji. An input can produce multiple outputs because a keystroke can be mapped to multiple romajis.
-