docs: def standardize_role(role):
      """Convert role text into standardized form."""
      role = role.lower()
      if any(c in role for c in {'synthesis', 'give', 'yield', 'afford', 'product', 'preparation of'}):
          return 'product'
      return role