Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goncalotomas/swear
OTP Library for filtering profanity in text
https://github.com/goncalotomas/swear
erlang filter otp-library profanity
Last synced: 6 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T18:25:02.000Z (over 6 years ago)
- Last Synced: 2024-03-15T15:07:59.453Z (11 months ago)
- Topics: erlang, filter, otp-library, profanity
- Language: Erlang
- Size: 17.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swear - Profanity scanning library
[![Build Status](https://travis-ci.org/ClicaAi/swear.svg?branch=master)](https://travis-ci.org/ClicaAi/swear)
[![hex version](https://img.shields.io/hexpm/v/swear.svg)](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