filter_profanity
Detect profanity in text and censor offensive words with asterisks. Returns profanity ratio and flagged word count to help moderate content.
Instructions
Detect and censor profanity in text.
Uses a curated English profanity list to flag and censor offensive words. The censored version replaces flagged words with asterisks.
Args: text: The text to check (e.g. "This is some sample text")
Returns: dict with keys: contains_profanity, censored, flagged_word_count, profanity_ratio, cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |