Class KatakanaRomanizer
- java.lang.Object
-
- org.apache.lucene.analysis.ja.completion.KatakanaRomanizer
-
public class KatakanaRomanizer extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KatakanaRomanizer
getInstance()
Returns the singleton instance ofKatakanaRomenizer
List<CharsRef>
romanize(CharsRef input)
Translates a sequence of katakana to romaji.
-
-
-
Method Detail
-
getInstance
public static KatakanaRomanizer getInstance()
Returns the singleton instance ofKatakanaRomenizer
-
-