https://github.com/goncalotomas/swear
OTP Library for filtering profanity in text
https://github.com/goncalotomas/swear
erlang filter otp-library profanity
Last synced: 3 months ago
JSON representation
OTP Library for filtering profanity in text
- Host: GitHub
- URL: https://github.com/goncalotomas/swear
- Owner: goncalotomas
- License: apache-2.0
- Created: 2018-05-21T17:42:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T18:25:02.000Z (about 8 years ago)
- Last Synced: 2025-04-23T23:12:23.149Z (about 1 year ago)
- Topics: erlang, filter, otp-library, profanity
- Language: Erlang
- Size: 17.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swear - Profanity scanning library
[](https://travis-ci.org/ClicaAi/swear)
[](https://hex.pm/packages/swear)
An OTP library to scan for profanity in strings.
Swear word lists adapted from [Shutterstock's][1] 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"}
]}.
```
```erl-sh
1> swear:scan("shit").
true
2> swear:scan("shit", ["pt", "es"]).
false
```
[1]: https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words