How would I rewrite code which accomplishes something similar to the above in Swift for macOS?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence