code: def get_root(root, phonetic, compound):
      
      global compound_regex
      if not phonetic:
          root = trim_phonetics(root)
      if not compound:
          root = trim_compounds(root)
      return root
docs: Get the root form without markers.
  
      Parameters
      ----------
      root: str
          The word root form.
      phonetic: boolean
          If True, add phonetic information to the root forms.
      compound: boolean
          if True, add compound word markers to root forms.