Package com.day.cq.spellchecker
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 Summary
Modifier and TypeMethodDescriptionSpellchecks an entire text.Spellchecks a single word.
-
Method Details
-
checkWord
WordCheckResult checkWord(String word, String language, String[] dictionaryPaths) throws SpellCheckException Spellchecks a single word.- Parameters:
word- The word to spellchecklanguage- Language of the worddictionaryPaths- 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 spellchecklanguage- Language of the textisHtml- True if the text to check is in HTML formatdictionaryPaths- Paths to dictionaries- Returns:
- The result of the spellchecking
- Throws:
SpellCheckException- in case of an error
-