Interface SpellCheckerProvider


public interface SpellCheckerProvider
The SpellCheckerProvider is a service providing instances of SpellChecker

This interface can be implemented by implementors of the SpellChecker interface to generate instances for different languages.

Services of this type are not intended for general consumption. These services are for use as the backend for the SpellCheckService.

  • Method Details

    • createSpellChecker

      SpellChecker createSpellChecker(String language, String[] dictionaryPaths, ResourceResolver resolver) throws SpellCheckException
      Creates a new spellchecker.
      Parameters:
      language - Language/country to create spellchecker for
      dictionaryPaths - Locations to look for dictionaries. If this is null an internal default is being used.
      resolver -
      Returns:
      The spellchecker instance
      Throws:
      SpellCheckException - if a spellchecker could not be created for the desired language