I was wondering if it is possible to create a new function that returns all words contained in a dictionary.
It would be a great functionality to use in word games.
Any suggestion how can I achieve that?
I’m having problem to edit the source code.
Do you know where can I find the repository? (I’ve seen the github repository but it looks to have only 2.4-SNAPSHOT version).
I’m mainly interested to the repository for 2.2 version.
There’s code for that in TestTools.testDictionary():
final Dictionary dictionary = Dictionary.read(JLanguageTool.getDataBroker().getFromResourceDirAsUrl(tagger.getFileName()));
final DictionaryLookup lookup = new DictionaryLookup(dictionary);
for (WordData wordData : lookup) { .... }