I would like to change the code to Typescript if possible. Do I need to write an interface as well?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence