Check any text for profanity.
import { JigsawStack } from "jigsawstack"; const jigsaw = JigsawStack({ apiKey: "your-api-key" }); const response = await jigsaw.validate.profanity({ "text": "This is a sample text that might contain inappropriate language." })
{ "success": true, "profanities_found": false, "profanities": [], "clean_text": "This is a sample text that might contain inappropriate language.", "_usage": { "input_tokens": 20, "output_tokens": 35, "inference_time_tokens": 114, "total_tokens": 169 } }
Documentation IndexFetch the complete documentation index at: https://jigsaw-13.mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://jigsaw-13.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Show _usage
Show Profanity Object
Was this page helpful?