In which programming language you want to implement? If you just want math formulas you can google for it, I can extract the info for you.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence