Actions11
- Data Lookup Actions
- Risk Scoring Actions
Risk Scoring → Profanity Detection
AI-generatedSummary
Detect profanity in text and optionally list profane words or get a score only.
Inputs
- text (required) — The text to check for profanity.
- additionalFields — Optional additional settings for the operation.
- listBadWords — Whether to list the profane words in the response.
- mode — Whether to use test mode (disable in production).
- scoreOnly — Whether to return only the scoring of the text.
Output shape
an object containing the result of the profanity detection including score and optionally the list of profane words
The response can include an error if the input text is invalid or if the operation encounters an issue.
Examples
Example 1: Submit a text for profanity detection and request the list of profane words.
text = 'Some sample text with bad words'; additionalFields = { listBadWords: true }.