class_docstr: Transforms parallelly an input by replacing the same word.
docstr: Random return a word.
  
  :param int length: length of the word.
  :return str candidate: random word.
code: def get_random_word(self, word):
      r"""
      Random return a word.
  
      :param int length: length of the word.
      :return str candidate: random word.
  
      """
      length = len(word)
      candidate = ""
      min_len = 3
      max_len = length + 3
      candidate_len = random.randint(min_len, max_len)
      if word.istitle():
          candidate += random.choice(string.ascii_uppercase)
          for i in range(1, candidate_len):
              candidate += random.choice(string.ascii_lowercase)
      elif word.isupper():
          for i in range(candidate_len):
              candidate += random.choice(string.ascii_uppercase)
      else:
          for i in range(candidate_len):
              candidate += random.choice(string.ascii_lowercase)
      return candidate
  
file_path: textflint/textflint/generation/transformation/NMT/swap_parallel_same_word.py
imports: import random
  import string
  from .parallel_word_substitute import ParallelWordSubstitute
label_desc: Use image node_id 5 for calling the SwapParallelSameWord obj's underlying member method code with example usage: obj.get_random_word(word) and returns: candidate