code: def trim_phonetics(root):
      
      global phonetic_markers
      global phonetic_regex
      if root in phonetic_markers:
          return root
      else:
          return phonetic_regex.sub('', root)
docs: Function that trims phonetic markup from the root.
  
      Parameters
      ----------
      root: str
          The string to remove the phonetic markup.
  
      Returns
      -------
      str
          The string with phonetic markup removed.