Profanity Filter
ProfanityFilterProfanity Filter: Profanity Filter is a bad word filter API that scans text for offensive language and masks detected swear words with a chosen replacement character. It returns the sanitized text and a boolean flag indicating if profanity was present. Paid plans add the count of filtered words, each matched word with its position, and custom allow and block word lists. (Cost: 2 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "ProfanityFilter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Comma-separated extra words to flag and mask, up to 100 single words | |
| mask | No | The mask to replace the profanity words with. Should be a Single Character (e.g., *) | * |
| text | Yes | The text to filter profanity words from | |
| allow | No | Comma-separated words the filter should not flag, up to 100 single words (e.g. hell,damn) | |
| details | No | Add a matches list with each filtered word and its start and end position |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |