Skip to content

JunBau/profanity-away

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Profanity-Away REST API

A simple REST API that gives you the option to Censor, Replace a word or Replace the whole phrase if profanity is present.

Accepts the following JSON:

{ "action": "REPLACE_WITH_WORD", "text": "Some string here", "replacementWord": "replacement word" }

action values can be one of: [CENSOR, REPLACE_WITH_WORD, REPLACE_WITH_FACT]

text dictates which word/sentence should be filtered.

replacementWord substitutes any profanity found with your word of choice.

The result for a filtered response would look like:

{ "filteredMessage": "you piece of ****", "replacementMethod": "CENSOR" }

Also spins up a typical Swagger UI at /swagger-ui/index.html#/

About

REST API That filters profanity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages