Thank you, the code is well written and seems to work perfectly. The comments help to understand what exactly the code is doing as well.
How can I replace your example list in the code with my own when calling the program from the command line?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence