class_docstr: Transforms an input by inserting a random character.
  
  random_one (bool): Whether to return a single word with a random
  character deleted. If not, returns all possible options.
  skip_first_char (bool): Whether to disregard inserting as the first
  character. skip_last_char (bool): Whether to disregard inserting as
  the last character.
  >>> from textattack.transformations import WordSwapRandomCharacterInsertion
  >>> from textattack.augmentation import Augmenter
  
  >>> transformation = WordSwapRandomCharacterInsertion()
  >>> augmenter = Augmenter(transformation=transformation)
  >>> s = 'I am fabulous.'
  >>> augmenter.augment(s)
docstr: Returns returns a list containing all possible words with 1 random
  character inserted.
docstr_tok: ["Returns","returns","a","list","containing","all","possible","words","with","1","random","character","inserted","."]
code: def _get_replacement_words(self, word):
      """Returns returns a list containing all possible words with 1 random
      character inserted."""
      if len(word) <= 1:
          return []
  
      candidate_words = []
  
      start_idx = 1 if self.skip_first_char else 0
      end_idx = (len(word) - 1) if self.skip_last_char else len(word)
  
      if start_idx >= end_idx:
          return []
  
      if self.random_one:
          i = np.random.randint(start_idx, end_idx)
          candidate_word = (
              word[:i] + self._get_random_letter() + word[i:]
          )
          candidate_words.append(candidate_word)
      else:
          for i in range(start_idx, end_idx):
              candidate_word = (
                  word[:i] + self._get_random_letter() + word[i:]
              )
              candidate_words.append(candidate_word)
  
      return candidate_words
  
file_path: TextAttack/textattack/transformations/word_swaps/word_swap_random_character_insertion.py
imports: import numpy
  from .word_swap import WordSwap
label_desc: Use image node_id 2 for calling the WordSwapRandomCharacterInsertion obj's underlying member method code with example usage: obj._get_replacement_words(word) and returns: candidate_words, list, list