Package com.day.cq.spellchecker.spi
Interface SpellChecker
public interface SpellChecker
Generic spellchecker interface, returned by a
spellchecker provider.-
Method Summary
-
Method Details
-
check
Check a word against the spellchecker. Returntrueif the word is correct, elsefalse- Parameters:
word- word to check- Returns:
- a flag indicating, whether the word is correct
-
suggest
Return spelling suggestions for a word. Takes a word and an empty suggestion list as arguments. Returns the number of suggestions found and filled into the suggestion list.- Parameters:
word- word to find suggestions forsuggestions- list of suggestions to be filled- Returns:
- number of suggestions found and filled into the suggestions array
-