A universal Python library for detecting and/or filtering profane words.
Project description
# profanityfilter [![Build Status](https://travis-ci.org/areebbeigh/profanityfilter.svg?branch=master)](https://travis-ci.org/areebbeigh/profanityfilter)
A universal Python library for detecting and/or filtering profane words.
<img src=”https://pixabay.com/static/uploads/photo/2014/03/24/13/47/swearing-294391_960_720.png” height=”300px” width=”250px”>
<b>PyPI:</b> https://pypi.python.org/pypi/profanityfilter<br> <b>Doc:</b> http://pythonhosted.org/profanityfilter
# Installation
> pip install profanityfilter
# Usage
` import profanityfilter profanityfilter.censor("That's bullshit!") > "That's ********!" profanityfilter.set_censor("@") profanityfilter.censor("That's bullshit!") > "That's @@@@@@@@!" profanityfilter.define_words(["icecream", "choco"]) profanityfilter.censor("I love icecream and choco!") > "I love ******** and *****" profanityfilter.is_clean("That's awesome!") > True profanityfilter.is_clean("That's bullshit!") > False profanityfilter.is_profane("Profane shit is not good") > True `
# Console Executable
` profanityfilter -h > usage: profanityfilter-script.py [-h] [-t TEXT | -f PATH] [-o OUTPUT_FILE] > [--show] > > Profanity filter console utility > > optional arguments: > -h, --help show this help message and exit > -t TEXT, --text TEXT Test the given text for profanity > -f PATH, --file PATH Test the given file for profanity > -o OUTPUT_FILE, --output OUTPUT_FILE > Write the censored output to a file > --show Print the censored text `
# Contributing I encourage you to fork this repo and expand it in anyway you like. Pull requests are welcomed!
# Additional Info Developer: Areeb Beigh <areebbeigh@gmail.com><br> GitHub Repo: https://github.com/areebbeigh/profanityfilter/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for profanityfilter-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5bc9121cba10a44feecbb8af1a085caf6b9721f97ccd361a1b44aded097a517 |
|
MD5 | fa83d880d312e545cbbfd1ee8c981e73 |
|
BLAKE2b-256 | f95325d5ad5669c4c16f86f310b49b97c902ee9ee230cb032e62120cc6a74fac |