docs: def _process_name(name):
      """Fix issues with Jochem names."""
  
      # Unescape HTML entities
      name = unescape(name)
  
      # Remove bracketed stuff on the end
      name = NG_RE.sub('', name).strip()  # Nomenclature groups
      name = END_RE.sub('', name).strip(', ')  # Words
      name = RATIO_RE.sub('', name).strip(', ')  # Ratios
  
      # Remove stuff off start
      name = START_RE.sub('', name).strip()
  
      # Remove balanced start and end brackets if none in between
      name = BRACKET_RE.sub('\g<1>', name)
  
      # Un-invert CAS style names
      comps = name.split(', ')
      if len(comps) == 2:
          if comps[1].endswith('-'):
              name = comps[0]
              name = '%s%s' % (comps[1], name)
      elif len(comps) > 2:
          name = comps[0]
          for i in range(1, len(comps)):
              if comps[i].endswith('-'):
                  name = '%s%s' % (comps[i], name)
              else:
                  name = '%s %s' % (name, comps[i])
      return name