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
bprofanity-0.5.tar.gz
(6.6 kB
view hashes)