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 _get_transformations(self, current_text, indices_to_modify):
      transformed_texts = []
      for i in indices_to_modify:
          word_to_replace = current_text.words[i]
          word_to_replace_pos = current_text.pos_of_word_index(i)
          replacement_words = (
              self._get_replacement_words(
                  word_to_replace, word_to_replace_pos
              )
              or []
          )
          for r in replacement_words:
              transformed_texts.append(
                  current_text.replace_word_at_index(i, r)
              )
  
      return transformed_texts
  
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 3 for calling the WordSwapInflections obj's underlying member method code with example usage: obj._get_transformations(current_text, indices_to_modify) and returns: transformed_texts