Language language = LanguageDetector.detect(DICTIONARIES_PATH, text);
List<Entry> entries = TextIndex.getEntries(text)
Dictionary dictionary = Dictionary.open(DICTIONARIES_PATH, language);
Vocabulary vocabulary = new Vocabulary(language, dictionary);
vocabulary.process(text);
dictionary.close();