Interface SpellCheckService


  • public interface SpellCheckService
    This interface must be implemented by all services that provide means for spellchecking a single word or an entire text.
    • Method Detail

      • checkWord

        WordCheckResult checkWord​(String word,
                                  String language,
                                  String[] dictionaryPaths)
                           throws SpellCheckException
        Spellchecks a single word.
        Parameters:
        word - The word to spellcheck
        language - Language of the word
        dictionaryPaths - Paths to dictionaries
        Returns:
        The result of the spellchecking
        Throws:
        SpellCheckException - in case of an error
      • checkText

        TextCheckResult checkText​(String text,
                                  String language,
                                  boolean isHtml,
                                  String[] dictionaryPaths)
                           throws SpellCheckException
        Spellchecks an entire text.
        Parameters:
        text - The text to spellcheck
        language - Language of the text
        isHtml - True if the text to check is in HTML format
        dictionaryPaths - Paths to dictionaries
        Returns:
        The result of the spellchecking
        Throws:
        SpellCheckException - in case of an error