Transliteration for Java

4.7k Views Asked by At

I have a requirement of Transliterate any given word in any language to English using Google transliterator or any other alternative tool. I've tried searching for a solution for this but couldn't find any. There are a lot of solutions for Google Translate API but what I need is Transliteration.

All I need is to give a String (ex: Arabic) as input, the Google Transliterator API then it should transform it into English as output.

Found this possible duplicate but couldn't get it to work and most of the links don't work anymore... Found this but I need to use it in a java console application.

Any Suggestions Please? I need to use this in a JAVA program.

1

There are 1 best solutions below

0
On BEST ANSWER

Couldn't find any working solution with Google Transliterator but found an alternative, ICU4J Transliterator. It doesn't support all the languages but works fine with most of the languages.

I've made a sample project with the ICU4J transliterator and Google Translator. Check it out if anyone interested.