Interface SpellChecker

All Known Implementing Classes:
XMLmindSpellChecker

public interface SpellChecker
Interface to be implemented to provide a SpellChecker for JCMS.
Since:
jcms-6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of available languages for spell-checking.
    spellCheck(String text, String lang)
    Spell-check the specified text in the specified language and return a list of SpellCheckResult.
  • Method Details

    • getLanguageList

      List<String> getLanguageList()
      Returns a list of available languages for spell-checking.
      Returns:
      a List of ISO-639 language code
    • spellCheck

      List<SpellCheckResult> spellCheck(String text, String lang)
      Spell-check the specified text in the specified language and return a list of SpellCheckResult.
      Parameters:
      text - the text to check
      lang - the language of the text (ISO-639 code), never null or empty
      Returns:
      a List of SpellCheckResult