public void init() {
}
public String translate(String source) {
Language language = languageDetector.detectLanguage(source);
String[] words = source.split(" ");
StringBuilder sb = new StringBuilder();
for (String word : words) {
String translatedWord = dictionary.translate(word, language);
sb.append(translatedWord + " ");