A Python package for detecting and filtering profanity from bangla text
Project description
bprofanity
A Python package for detecting and filtering profanity from bangla text.
How It Works
The "bprofanity" module specializes in detecting and handling Bangla profanity. By utilizing a Trie data structure, it efficiently identifies Bangla profanity slangs and offers functions for censorship, counting occurrences, and checking for profanity in text data. This module ensures accurate and targeted detection of Bangla profanity, enhancing content moderation for Bangla-language platforms.
Installation
Install "bprofanity" with pip
pip install bprofanity
Usage/Examples
from bprofanity import ProfanityChecker
profanity_checker = ProfanityChecker()
input_text = "Some text with a bad word like Bal"
profanity_checker.contains_profanity(input_text)
# True
profanity_checker.censor(input_text)
# Some text with a bad word like ***
profanity_checker.censor_count(input_text)
# 1
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bprofanity-0.5.tar.gz.
File metadata
- Download URL: bprofanity-0.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d50857ebec01e2f76d893ec24191b5f1d755eab35d239657584b58c60314823f
|
|
| MD5 |
9b850f148525526b328e7ed75186bc03
|
|
| BLAKE2b-256 |
602d70d214f8690a6beecb4b70a7384ab319b7abe084764635a37a6a938ccdce
|
File details
Details for the file bprofanity-0.5-py3-none-any.whl.
File metadata
- Download URL: bprofanity-0.5-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db3586504d38235c14ee57895b4ca8bdc769b388c939fad59f07053da59c3f8d
|
|
| MD5 |
c3a0bc88b816fc5544519bef92112d92
|
|
| BLAKE2b-256 |
016375169c5e63990b546e58924ae54ab4047988d84a5204fdc6efa6de62606e
|