Class MorfologikSpeller


  • public class MorfologikSpeller
    extends Object
    Morfologik-based spell checker.
    • 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
    • Method Detail

      • isMisspelled

        public boolean isMisspelled​(String word)
      • convertsCase

        public boolean convertsCase()
        Determines whether the dictionary uses case conversions.
        Returns:
        True when the speller uses spell conversions.
        Since:
        2.5
      • getFrequency

        public int getFrequency​(String word)