That's not an useful answer. There is no function, or really any code to speak of. I need the function to be written in PHP, and to get the language of the user calling the page. It should return one of these, or use "en" a a fallback:
"es"
"de"
"en"
"fr"
"zh"
"jp"
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence