Package for checking text for existance of blacklisted or whitelisted words
Project description
checkword
Simple module for check if the text contains blacklisted or whitelisted words
##Installation
pip install checkword
Usage
import checkword
# add some bad words to blacklist
checkword.add_bad_words(['some', 'bad', 'words', 'like', 'sheet'])
# and good words
checkword.add_good_words(['Festival', 'Event', 'Holiday'])
print(checkword.blacklisted('My some text to check for bad words'))
# True
print(checkword.whitelisted('Another text to check for good words'))
# False
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
checkword-0.0.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for checkword-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff56b7538d5ae42cdc7032a5eed139a66b2ca11338755e0c51eb900f99545b5b |
|
MD5 | e98c7b09f56e7563f05b3a39589b7147 |
|
BLAKE2b-256 | 677e93b6c7e11546c18320733a56b0c712bb2657845d072d723292d0e07555fe |