class_docstr: Transforms an input by replacing its words with their inflections.
  
  For example, the inflections of 'schedule' are {'schedule', 'schedules', 'scheduling'}.
  
  Base on ``It’s Morphin’ Time! Combating Linguistic Discrimination with Inflectional Perturbations``.
  
  `Paper URL`_
  
  .. _Paper URL: https://www.aclweb.org/anthology/2020.acl-main.263.pdf
code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
      # fine-grained en-ptb POS to universal POS mapping
      # (mapping info: https://github.com/slavpetrov/universal-pos-tags)
      self._enptb_to_universal = {
          "JJRJR": "ADJ",
          "VBN": "VERB",
          "VBP": "VERB",
          "JJ": "ADJ",
          "VBZ": "VERB",
          "VBG": "VERB",
          "NN": "NOUN",
          "VBD": "VERB",
          "NP": "NOUN",
          "NNP": "NOUN",
          "VB": "VERB",
          "NNS": "NOUN",
          "VP": "VERB",
          "TO": "VERB",
          "SYM": "NOUN",
          "MD": "VERB",
          "NNPS": "NOUN",
          "JJS": "ADJ",
          "JJR": "ADJ",
          "RB": "ADJ",
      }
  
file_path: TextAttack/textattack/transformations/word_swaps/word_swap_inflections.py
imports: import random
  import lemminflect
  from .word_swap import WordSwap
label_desc: Use image node_id 1 to create a new WordSwapInflections object from inherited base classes: WordSwap with example: obj = WordSwapInflections()