code: def _paragraph_context(match):
      
      start = match.start()
      end = match.end()
      window = 100000
      snippet_left = match.string[start - window:start + 1]
      snippet_right = match.string[end:end + window]
      re_match = match.string[match.start():match.end()]
  
      # (1) Optional any whitespaces, (2) one newline, (3) optional any whitespaces.
      para_break_pattern = r'\s*?\n\s*?'
      comp_sent_boundary = regex.compile(para_break_pattern, flags=regex.VERSION1)
      # Left
      left_punct = []
      for punct in comp_sent_boundary.finditer(snippet_left):
          end = punct.end()
          left_punct.append(end)
      try:
          last_period = left_punct.pop()
      except IndexError:
          last_period = 0
  
      # Right
      right_punct = []
      for punct in comp_sent_boundary.finditer(snippet_right):
          end = punct.end()
          right_punct.append(end)
      try:
          first_period = right_punct.pop(0)
      except IndexError:
          first_period = 0
  
      sentence = snippet_left[last_period:-1] + '*' + re_match + '*' + snippet_right[0:first_period - 1]
  
      # Remove any trailing whitespace. Necessary?
      #comp_final_space = regex.compile(r'\s*$')
      #sentence = comp_final_space.sub('', sentence)
  
      return sentence
docs: Take one incoming regex match object and return the paragraph in which
      the match occurs.
      :rtype : str
      :param match: regex.match
      :param language: str