It depends on the language. If you're using python you could use: Lark, Lrparsing, PLY, PLYplus, Pyleri, PEG, Arpeggio, canopy, Parsimonius, pyPEG, TatSu or Waxeye. If you arent using python, then please specify the langage, then I can give you more specific tools.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence