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.5.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

bprofanity-0.5-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for bprofanity-0.5.tar.gz
Algorithm Hash digest
SHA256 d50857ebec01e2f76d893ec24191b5f1d755eab35d239657584b58c60314823f
MD5 9b850f148525526b328e7ed75186bc03
BLAKE2b-256 602d70d214f8690a6beecb4b70a7384ab319b7abe084764635a37a6a938ccdce

See more details on using hashes here.

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

Hashes for bprofanity-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 db3586504d38235c14ee57895b4ca8bdc769b388c939fad59f07053da59c3f8d
MD5 c3a0bc88b816fc5544519bef92112d92
BLAKE2b-256 016375169c5e63990b546e58924ae54ab4047988d84a5204fdc6efa6de62606e

See more details on using hashes here.

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