CenSwear is a Python based profanity filter API. CenSwear is a simple, free, and reliable language understanding API designed to recognize and remove profanity, obscenity, and other unwanted text. It’s a technology you can swear by!
Check out the live site - CenSwear
Software/ Language | Version |
---|---|
Python | 3.8 |
Flask | 2.0.0 |
-
- The API detects and censors swear words and profanities from chat and text messages based on an internal profanity list.
-
- We’ve designed CenSwear in a way that it detetcts profanities in multiple languages
-
- The web service also provides real-time redaction of swear words while emails and documents are being typed.
-
- CenSwear ensures that not one single offensive message slips through its filters, creating a safe and productive environment for the users.
├── README.md <- The top-level README for developers using this project.
│
├── requirements.txt <- The requirements file for reproducing the environment
│
├── test
│ └── app_test.py <- The python script for testing the app
│
├── LICENSE
│
├── Procfile <- for heroku deployment
│
└── src
├── __init__.py
├── app.py <- Main python file containig the flask app
├── templates
│ ├── base.html
│ └── home.html
└── static
├── assets <- contains svg images and backgrounds
└── css <- The css files for the web app
To use this project, follow these steps:
- Make a
.env
file having same structure as.env.sample
inside thesrc
folder - Fill in the
FILTER_WORDLIST_URL
andCLEAN_WORDLIST_URL
variables - Clone this repository
git clone https://github.com/MLSA-SRM/CenSwear.git
- Install dependencies
pip install -r requirements.txt
- Go to the app root folder
cd src
- Run the App
python app.py
orflask run