SpellingCorrector
Leave feedback
On this page
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
| 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 |
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. |
public abstract int getCount()
Gets the number of words contained in this SpellingCorrector .
Returns: int - The number of words contained in this SpellingCorrector .
public abstract String[] getWords()
Gets the collection of words that is currently contained in this SpellingCorrector .
Returns: java.lang.String[] - The collection of 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. |
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. |
public abstract void clear()
Removes all words from a SpellingCorrector object.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.