Class LinguServices


  • public class LinguServices
    extends java.lang.Object
    Dummy class for UserConfig has to be overridden by concrete linguistic service e.g. by LO extension
    Since:
    4.4
    • Constructor Summary

      Constructors 
      Constructor Description
      LinguServices()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNumberOfSyllables​(java.lang.String word, Language lang)
      Returns the number of syllable of a word Returns -1 if the word was not found or anything goes wrong
      java.util.List<java.lang.String> getSynonyms​(java.lang.String word, Language lang)
      Get all synonyms of a word as list of strings.
      boolean isCorrectSpell​(java.lang.String word, Language lang)
      Returns true if the spell check is positive
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinguServices

        public LinguServices()
    • Method Detail

      • getSynonyms

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

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

        public int getNumberOfSyllables​(java.lang.String word,
                                        Language lang)
        Returns the number of syllable of a word Returns -1 if the word was not found or anything goes wrong