(self, word)
Returns a list of synonyms for the given word.

        >>> thesaurus.synonyms("hail")
        ['acclaim', 'come', 'herald']
Returns a list of synonyms for the given word.
Returns a list of synonyms for the given word .
def synonyms(self, word):
        """Returns a list of synonyms for the given word.

        >>> thesaurus.synonyms("hail")
        ['acclaim', 'come', 'herald']
        """

        word = word.lower()
        if self.searcher:
            return self.searcher.document(word=word)["syns"]
        else:
            return synonyms(self.w2n, self.n2w, word)
def synonyms ( self , word ) : word = word . lower ( ) if self . searcher : return self . searcher . document ( word = word ) [ "syns" ] else : return synonyms ( self . w2n , self . n2w , word )