public class MorfologikSpeller extends Object
Constructor and Description |
---|
MorfologikSpeller(String fileInClassPath)
Creates a speller with a maximum edit distance of one.
|
MorfologikSpeller(String fileInClassPath,
int maxEditDistance)
Creates a speller with the given maximum edit distance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
convertsCase()
Determines whether the dictionary uses case conversions.
|
List<String> |
findReplacements(String word) |
List<String> |
findSimilarWords(String word) |
static morfologik.stemming.Dictionary |
getDictionaryWithCaching(String fileInClassPath)
Load a dictionary from the given path or reuse a cached instance, if present.
|
int |
getFrequency(String word) |
morfologik.speller.Speller |
getSpeller()
Deprecated.
use (or introduce) other methods to this class which would take care of the necessary synchronization
|
List<org.languagetool.rules.spelling.morfologik.WeightedSuggestion> |
getSuggestions(String word) |
boolean |
isMisspelled(String word) |
String |
toString() |
public MorfologikSpeller(String fileInClassPath, int maxEditDistance)
fileInClassPath
- path in classpath to morfologik dictionarypublic MorfologikSpeller(String fileInClassPath) throws IOException
fileInClassPath
- path in classpath to morfologik dictionaryIOException
public static morfologik.stemming.Dictionary getDictionaryWithCaching(@NotNull String fileInClassPath)
fileInClassPath
- path in classpath to morfologik dictionarypublic boolean isMisspelled(String word)
@Deprecated public morfologik.speller.Speller getSpeller()
public List<org.languagetool.rules.spelling.morfologik.WeightedSuggestion> getSuggestions(String word)
public boolean convertsCase()
public int getFrequency(String word)