Skip to main content

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

Metadata

Release files for bprofanity 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bprofanity 0.5
File Size Uploaded Provenance Actions
bprofanity-0.5.tar.gz 6.6 kB Without provenance Details for bprofanity-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bprofanity 0.5
File Interpreter ABI Platform Actions
bprofanity-0.5-py3-none-any.whl Python 3 none any Details for bprofanity-0.5-py3-none-any.whl

Total release size: 16.1 kB

Release files / bprofanity-0.5.tar.gz

Download URL bprofanity-0.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d50857ebec01e2f76d893ec24191b5f1d755eab35d239657584b58c60314823f
BLAKE2b-256 checksum
How to use checksums
602d70d214f8690a6beecb4b70a7384ab319b7abe084764635a37a6a938ccdce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / bprofanity-0.5-py3-none-any.whl

Download URL bprofanity-0.5-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db3586504d38235c14ee57895b4ca8bdc769b388c939fad59f07053da59c3f8d
BLAKE2b-256 checksum
How to use checksums
016375169c5e63990b546e58924ae54ab4047988d84a5204fdc6efa6de62606e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for bprofanity 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page