swear - Profanity scanning library

Build Statushex 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