Profanity Filter
  • 19 Jul 2024
  • 1 Minute to read
  • Contributors
  • PDF

Profanity Filter

  • PDF

Article summary

Masks unwanted expressions in a given text, filtering out offensive language and inappropriate phrases.

Parameters:

name
description
default
AddressAddress of the profanity filter servicehttp://core-profanity/v1/text/profanity
IgnoreSslErrorsignore any certificate errors if Profanity address contains httpsfalse
LanguageIndicates the language of the text to be filtereden-US

Inputs

Events:

namedescriptionknown nodes that generate this event
*all events containing the 'Text' fieldSR Http

Outputs

Audio:
none

Events:

namedescription
*Re-raises any input event after masking the Text field. Adds "filtered" to Event.Data.TextAttributes
Filtered Phrases

An Asterisk "*" appears in place of each letter filtered.

Project Structure

A minimal sample project can be built as such:

image.png

A project that utilizes several text manipulation services can be built as such:

image.png

Service Order

It is important that Profanity Filter node is used after the Normalizer and Punctuation nodes. Otherwise, the filtered asterisks will be seen as punctuation by the other services and be manipulated as such.

Supported flow types: Stream, Batch


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.