Skip to main content

A Python package for detecting and filtering profanity from bangla text

Project description

bprofanity

Static Badge

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


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.4.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

bprofanity-0.4-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page