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)
code: def __init__(self, language="eng"):
      nltk.download("omw-1.4")
      if language not in wordnet.langs():
          raise ValueError(
              f"Language {language} not one of {wordnet.langs()}"
          )
      self.language = language
  
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 1 to create a new WordSwapWordNet object from inherited base classes: WordSwap with example: obj = WordSwapWordNet(language)