class_docstr: Transforms an input by replacing its words with synonyms provided by
  WordNet.
  
  >>> from textattack.transformations import WordSwapWordNet
  >>> from textattack.augmentation import Augmenter
  
  >>> transformation = WordSwapWordNet()
  >>> augmenter = Augmenter(transformation=transformation)
  >>> s = 'I am fabulous.'
  >>> augmenter.augment(s)
docstr: Returns a list containing all possible words with 1 character
  replaced by a homoglyph.
docstr_tok: ["Returns","a","list","containing","all","possible","words","with","1","character","replaced","by","a","homoglyph","."]
code: def _get_replacement_words(self, word, random=False):
      """Returns a list containing all possible words with 1 character
      replaced by a homoglyph."""
      synonyms = set()
      for syn in wordnet.synsets(word, lang=self.language):
          for syn_word in syn.lemma_names(lang=self.language):
              if (
                  (syn_word != word)
                  and ("_" not in syn_word)
                  and (textattack.shared.utils.is_one_word(syn_word))
              ):
                  # WordNet can suggest phrases that are joined by '_' but we ignore phrases.
                  synonyms.add(syn_word)
      return list(synonyms)
  
file_path: TextAttack/textattack/transformations/word_swaps/word_swap_wordnet.py
imports: import nltk
  from nltk.corpus import wordnet
  import textattack
  from .word_swap import WordSwap
label_desc: Use image node_id 2 for calling the WordSwapWordNet obj's underlying member method code with example usage: obj._get_replacement_words(word, random) and returns: list