Class MorfologikSpeller
- java.lang.Object
-
- org.languagetool.rules.spelling.morfologik.MorfologikSpeller
-
public class MorfologikSpeller extends Object
Morfologik-based spell checker.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
convertsCase()
Determines whether the dictionary uses case conversions.int
getFrequency(String word)
List<String>
getSuggestions(String word)
boolean
isMisspelled(String word)
String
toString()
-
-
-
Constructor Detail
-
MorfologikSpeller
public MorfologikSpeller(String fileInClassPath, int maxEditDistance)
Creates a speller with the given maximum edit distance.- Parameters:
fileInClassPath
- path in classpath to morfologik dictionary
-
MorfologikSpeller
public MorfologikSpeller(String fileInClassPath) throws IOException
Creates a speller with a maximum edit distance of one.- Parameters:
fileInClassPath
- path in classpath to morfologik dictionary- Throws:
IOException
-
-