bprofanity


Namebprofanity JSON
Version 0.4 PyPI version JSON
download
home_pagehttps://github.com/thatsayon/bprofanity
SummaryA Python package for detecting and filtering profanity from bangla text
upload_time2024-03-25 07:14:37
maintainerNone
docs_urlNone
authorAshiqul Islam Ayon
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# bprofanity

![Static Badge](https://img.shields.io/badge/release-0.4-blue)

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

```bash
pip install bprofanity
```
## Usage/Examples

```python
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
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thatsayon/bprofanity",
    "name": "bprofanity",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Ashiqul Islam Ayon",
    "author_email": "ashiqulislamayon28@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c3/37/afec1e6966a7a2f394ec8af2248f0137988b602cbb40a3a5c80fe24f2887/bprofanity-0.4.tar.gz",
    "platform": null,
    "description": "\n# bprofanity\n\n![Static Badge](https://img.shields.io/badge/release-0.4-blue)\n\nA Python package for detecting and filtering profanity from bangla text.\n\n## How It Works\n\nThe \"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.\n## Installation\n\nInstall \"bprofanity\" with pip\n\n```bash\npip install bprofanity\n```\n## Usage/Examples\n\n```python\nfrom bprofanity import ProfanityChecker\n\nprofanity_checker = ProfanityChecker()\n\ninput_text = \"Some text with a bad word like Bal\"\n\nprofanity_checker.contains_profanity(input_text)\n# True\n\nprofanity_checker.censor(input_text)\n# Some text with a bad word like ***\n\nprofanity_checker.censor_count(input_text)\n# 1\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for detecting and filtering profanity from bangla text",
    "version": "0.4",
    "project_urls": {
        "Homepage": "https://github.com/thatsayon/bprofanity"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71e6ab0a5e493da3be9ec8e0c31cddf9a87035fc65600430266e05ba64b2aa95",
                "md5": "6adffd8bb3b2c075034d8a631d93dfe5",
                "sha256": "c9f7d87f82e6eb086f7e112f6c786d524d3931f192f6e86a24a537dd294694ff"
            },
            "downloads": -1,
            "filename": "bprofanity-0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6adffd8bb3b2c075034d8a631d93dfe5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9473,
            "upload_time": "2024-03-25T07:14:34",
            "upload_time_iso_8601": "2024-03-25T07:14:34.781899Z",
            "url": "https://files.pythonhosted.org/packages/71/e6/ab0a5e493da3be9ec8e0c31cddf9a87035fc65600430266e05ba64b2aa95/bprofanity-0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c337afec1e6966a7a2f394ec8af2248f0137988b602cbb40a3a5c80fe24f2887",
                "md5": "06a4ce097f8175fdf64e308ee8754bcb",
                "sha256": "34d62cce886bc16ef5d6871d58b0ab23b6460a9ef5b32e8b73e42ff6a17187ce"
            },
            "downloads": -1,
            "filename": "bprofanity-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "06a4ce097f8175fdf64e308ee8754bcb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6550,
            "upload_time": "2024-03-25T07:14:37",
            "upload_time_iso_8601": "2024-03-25T07:14:37.546975Z",
            "url": "https://files.pythonhosted.org/packages/c3/37/afec1e6966a7a2f394ec8af2248f0137988b602cbb40a3a5c80fe24f2887/bprofanity-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-25 07:14:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thatsayon",
    "github_project": "bprofanity",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "bprofanity"
}
        
Elapsed time: 1.04877s