PubNub Integration

Two Hat’s Sift Ninja - Profanity Filter

In-app chat

In-app chat

Last Updated:

2016/10/18

Author:

SiftNinja

APISign-upDocumentation

Simple but yet powerful profanity filter for chat and comments

A simple but yet powerful profanity filter for chat and comments that automatically removes profanity from your community.

Powered by Two Hat, Sift Ninja is the world's smartest profanity filter for all social platforms. Powered by the same robust content classifiers as Two Hat’s Community Sift, think of Sift Ninja as “Community Sift Lite,” or “Community Sift for Startups”. An essentials-only profanity filter tool that automatically filters the worst content, including PII, vulgarity, sexting, and racism. The Sift Ninja block lets you build this functionality into your PubNub Data Streams, allowing you to monitor and filter unmoderated content as the data is streamed. For example, if you have a chat app or a public forum, you can automatically moderate and filter published messages before it reaches end users.

Two Hat’s Sift Ninja - Profanity Filter

Walkthrough

The use of Sift Ninja is straightforward. The below diagram indicates high level data flow.

SN Image

This video shows how to get it working.

Supply your SiftNinja account name (accountName), output channel name (channelName) and api key (apiKey)

Then, publish a message to the event script channel like:

{
    "text": "Hello, Ninja! This is a vulgar-severe phrase."
}

The text parameter is the contents of the message that will be checked for profanity and tagged by SiftNinja.

To learn more about SiftNinja and to get your keys, visit http://www.siftninja.com/pubnub/.

Input

Publish message containing message body to input channel. Input Channel: siftninja-input

{
    "text": "Hello, Ninja! This is a vulgar-severe phrase."
}

output

SiftNinja's response is published on the output channel and includes the moderation results.

{ 
    "text": "Hello, Ninja! This is a vulgar-severe phrase.", 
    "sift_ninja": { 
        "hashes": [{ 
            "start": 0, 
            "hashes": [ ], 
            "hashed": "####" 
        }], 
        "content_id": null, 
        "response": false, 
        "tags": { 
            "vulgar": 1,
            "bullying": null
        } 
    }
}

Feedback & Support

Need help? Contact PubNub Support.

More integrations for you

Two Hat’s Community Sift - Content Moderation Platform

    Two Hat’s Community Sift - Content Moderation Platform

    Enterprise-level AI-powered content moderation platform

    Learn more
    Tisane Labs NLP - Realtime Text Analysis in 27 Languages

      Tisane Labs NLP - Realtime Text Analysis in 27 Languages

      Detect abusive content, sentiment analysis, and tagging/categorization in...

      Learn more
      Clarifai: Image and Video Recognition

        Clarifai: Image and Video Recognition

        Analyze, sort, categorize, and tag images or videos

        Learn more

        Talk to an expert

        Contact Sales