public class LinguServices extends Object
Constructor and Description |
---|
LinguServices() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfSyllables(String word,
Language lang)
Returns the number of syllable of a word
Returns -1 if the word was not found or anything goes wrong
|
List<String> |
getSynonyms(String word,
Language lang)
Get all synonyms of a word as list of strings.
|
boolean |
isCorrectSpell(String word,
Language lang)
Returns true if the spell check is positive
|
void |
setThesaurusRelevantRule(Rule rule)
Set a thesaurus relevant rule
|
public List<String> getSynonyms(String word, Language lang)
public boolean isCorrectSpell(String word, Language lang)
public int getNumberOfSyllables(String word, Language lang)
public void setThesaurusRelevantRule(Rule rule)