SpellingCorrector

All Implemented Interfaces: com.groupdocs.search.dictionaries.DictionaryBase

public interface SpellingCorrector extends DictionaryBase

Defines interface of a spelling corrector for terms in a query.

Learn more

Methods

Method Description
getCount() Gets the number of words contained in this SpellingCorrector .
getWords() Gets the collection of words that is currently contained in this SpellingCorrector .
addRange(Iterable words) Adds the specified collection of words to this instance of the SpellingCorrector .
addRange(String[] words) Adds the specified collection of words to this instance of the SpellingCorrector .
clear() Removes all words from a SpellingCorrector object.

getCount()

public abstract int getCount()

Gets the number of words contained in this SpellingCorrector .

Returns: int - The number of words contained in this SpellingCorrector .

getWords()

public abstract String[] getWords()

Gets the collection of words that is currently contained in this SpellingCorrector .

Returns: java.lang.String[] - The collection of words.

addRange(Iterable words)

public abstract void addRange(Iterable<String> words)

Adds the specified collection of words to this instance of the SpellingCorrector .

Parameters:

Parameter Type Description
words java.lang.Iterable<java.lang.String> The collection of words to add to the dictionary.

addRange(String[] words)

public abstract void addRange(String[] words)

Adds the specified collection of words to this instance of the SpellingCorrector .

Parameters:

Parameter Type Description
words java.lang.String[] The collection of words to add to the dictionary.

clear()

public abstract void clear()

Removes all words from a SpellingCorrector object.