Reader dbWords = new InputStreamReader(in);
//TODO find a better way to name the dictionaries
InMemoryDictionary diction = InMemoryDictionary.newInstance(dbWords, false, name);
finders.add(new DictionaryPatternsFinder(diction, new ExactWordStrategy()));
finders.add(new DictionaryPatternsFinder(diction, new MisspellingStrategy(1)));
finders.add(new DictionaryPatternsFinder(diction, new AugmentationStrategy(2)));
finders.add(new DictionaryPatternsFinder(diction, new SubstitutionStrategy(1)));
finders.add(new DictionaryPatternsFinder(diction, new l337SubstitutionStrategy()));
finders.add(new ReverseDictionaryPatternFinder(diction, new ExactWordStrategy()));
} catch (IOException ioe) {
ioe.printStackTrace();