To add a custom function to your Google sheet:

1. Create or open a spreadsheet in Google Sheets.
2. Select the menu item Extensions > Apps Script.
3. Copy and paste the code into the script editor.
4. At the top, click Save save.

Then the function will be available to use in any cell in the spreadsheet.

Let me know if there is anything else I can help with.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence