Class SpellCheckerOSX

    • Constructor Detail

      • SpellCheckerOSX

        public SpellCheckerOSX()
    • Method Detail

      • check

        public Range check​(String stringToCheck,
                           int startIndex,
                           String language)
        Description copied from class: SpellChecker
        Checks the spelling of a given string.
        Specified by:
        check in class SpellChecker
        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 String[] guesses​(String stringToCheck,
                                Range range,
                                String language)
        Specified by:
        guesses in class SpellChecker
        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