Last updated:
0 purchases
bprofanity 0.5
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.