/swear

OTP Library for filtering profanity in text

Primary LanguageErlangApache License 2.0Apache-2.0

swear - Profanity scanning library

Build Status hex version

An OTP library to scan for profanity in strings.
Swear word lists adapted from Shutterstock's repo.

Pull requests for improvements on the curse word lists or other languages are welcomed!

Build

$ rebar3 compile

Use

append this to the deps list in your rebar.config file

{deps, [
    ... other deps
    {swear, "~>1.0"}
]}.
1> swear:scan("shit").
true
2> swear:scan("shit", ["pt", "es"]).
false