public class MorfologikMultiSpeller extends Object
| Constructor and Description |
|---|
MorfologikMultiSpeller(String binaryDictPath,
BufferedReader plainTextReader,
int maxEditDistance) |
MorfologikMultiSpeller(String binaryDictPath,
String plainTextPath,
int maxEditDistance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
convertsCase()
Determines whether the dictionary uses case conversions.
|
List<String> |
getSuggestions(String word)
The suggestions from all dictionaries (without duplicates).
|
boolean |
isMisspelled(String word)
Accept the word if at least one of the dictionaries accepts it as not misspelled.
|
public MorfologikMultiSpeller(String binaryDictPath, String plainTextPath, int maxEditDistance) throws IOException
binaryDictPath - path in classpath to a .dict binary Morfologik fileplainTextPath - path in classpath to a plain text .txt file (like spelling.txt)maxEditDistance - maximum edit distance for accepting suggestionsIOExceptionpublic MorfologikMultiSpeller(String binaryDictPath, BufferedReader plainTextReader, int maxEditDistance) throws IOException
binaryDictPath - path in classpath to a .dict binary Morfologik fileplainTextReader - reader with to a plain text .txt file (like from spelling.txt)maxEditDistance - maximum edit distance for accepting suggestionsIOExceptionpublic boolean isMisspelled(String word)
public List<String> getSuggestions(String word)
public boolean convertsCase()