can the two functions be combined into an optimized function? give an example code block in javascript showing such a function with comments describing each step
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence