Class SpellChecker

    • Constructor Detail

      • SpellChecker

        protected SpellChecker()
    • Method Detail

      • check

        public abstract Range check​(String stringToCheck,
                                    int startIndex,
                                    String language)
        Checks the spelling of a given string.
        Parameters:
        stringToCheck - string
        startIndex - start index (location)
        language - language to use (ISO 639-1 or ISO 639-2)
        Returns:
        range of first misspelled word or null, if nothing is misspelled
        See Also:
        iso639-2
      • guesses

        public abstract String[] guesses​(String stringToCheck,
                                         Range range,
                                         String language)
        Parameters:
        stringToCheck - string
        range - part of the string to provide guesses for or null if for the whole string
        language - language the string is in (ISO 639-1 or ISO 639-2)
        Returns:
        guesses
        See Also:
        iso639-2