Class LinguServices


  • public class LinguServices
    extends Object
    Dummy class for UserConfig has to be overridden by concrete linguistic service e.g. by LO extension
    Since:
    4.4
    Author:
    Fred Kruse
    • Constructor Detail

      • LinguServices

        public LinguServices()
    • Method Detail

      • getSynonyms

        public List<String> getSynonyms​(String word,
                                        Language lang)
        Get all synonyms of a word as list of strings.
      • isCorrectSpell

        public boolean isCorrectSpell​(String word,
                                      Language lang)
        Returns true if the spell check is positive
      • getNumberOfSyllables

        public 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