public class Dictionary
extends org.freedesktop.bindings.Proxy
Modifier and Type | Method and Description |
---|---|
void |
add(String word)
Add a word to the personal dictionary.
|
boolean |
check(String word)
Check the spelling of the given word.
|
void |
remove(String word)
Remove a word from the personal dictionary.
|
String[] |
suggest(String word)
Offer alternate suggestions of how to spell a word.
|
public void add(String word)
public boolean check(String word)
Returns true
if the word is deemed to be spelt correctly,
false
if incorrect.
The underlying library documentation also notes an error state; should it be encountered we throw an IllegalStateException.
public void remove(String word)
FIXME
This does remove the word from the Enchant personal word list, but it
then adds it to something called the "exclude" list. What is
that all about?
public String[] suggest(String word)
Beware that you can get suggestions even from a word that is correctly
spelt! This means that you need to call check()
first to find out whether or not to offer a list of corrections.