Profanity Filter

Prev Next

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

Parameters

name
description
default
IgnoreSslErrors ignore any certificate errors if Profanity address contains https false
Language Indicates the language of the text to be filtered en-US

Inputs

Events

name description known nodes that generate this event
* all events containing the 'Text' field SR Http

Outputs

Audio

 none

Events

name description
* 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.

Remarks

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

Release Notes

v4.0.0
  • Removed the address field.
v1.0.0
  • Introduced node.