PurgoMalum
App · 2 actions
Filter profanity out of text with PurgoMalum, a free profanity filter: mask swear words with a character or your own text, add words of your own, or check whether a text is clean before it is posted.
Check text for profanity
Check whether a text contains swear words or other profanity, to hold a post for review or branch a workflow. Common disguises such as sh1t and $hit count too.
Inputs
- Text
texttextRequired - The text to check, such as a comment or a message, up to about 10,000 characters.
- Extra words to filter
extra_words_to_filterlist - Up to 10 more words or phrases to treat as profanity, such as a competitor's name. Letters and spaces only.
Outputs
contains_profanitytrue/false- Whether the text contains profanity
texttext- The text that was checked
Example output
{
"contains_profanity": true,
"text": "This is some shit text"
}Clean up profanity
Mask the swear words and other profanity in a text, such as a comment before it is posted. Each word is filled with a character, or replaced whole with text you choose. Common disguises such as sh1t and $hit are caught too.
Inputs
- Text
texttextRequired - The text to check, such as a comment or a message, up to about 10,000 characters.
- Replacement character
replacement_charactertext - The character that fills each masked word, one for each letter.One of:
*(Asterisks (****)),_(Underscores (____)),-(Dashes (----)),~(Tildes (~~~~)),=(Equal signs (====)),|(Pipes (||||)). Default:*. - Replacement text
replacement_texttext - Text that replaces each masked word whole instead, such as [removed]. Up to 20 letters, numbers, spaces or _ ~ ! - = | ' " * { } [ ] ( ).
- Extra words to filter
extra_words_to_filterlist - Up to 10 more words or phrases to treat as profanity, such as a competitor's name. Letters and spaces only.
Outputs
had_profanitytrue/false- Whether anything was masked
original_texttext- The text as it was given
texttext- The text with its profanity masked, without leading or trailing spaces
Example output
{
"had_profanity": true,
"original_text": "This is some shit text",
"text": "This is some **** text"
}