Package com.tagtraum.core.lang
Class SpellCheckerOSX
- java.lang.Object
-
- com.tagtraum.core.lang.SpellChecker
-
- com.tagtraum.core.lang.SpellCheckerOSX
-
public class SpellCheckerOSX extends SpellChecker
Spell checker for macOS.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description SpellCheckerOSX()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Range
check(String stringToCheck, int startIndex, String language)
Checks the spelling of a given string.String[]
guesses(String stringToCheck, Range range, String language)
-
Methods inherited from class com.tagtraum.core.lang.SpellChecker
getInstance
-
-
-
-
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 classSpellChecker
- Parameters:
stringToCheck
- stringstartIndex
- 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 classSpellChecker
- Parameters:
stringToCheck
- stringrange
- part of the string to provide guesses for or null if for the whole stringlanguage
- language the string is in (ISO 639-1 or ISO 639-2)- Returns:
- guesses
- See Also:
- iso639-2
-
-