{ "info": { "author": "Dmitry Shorokhov", "author_email": "vip.shoroch@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Dictionary Profanity Filter\n\n[![Build Status](https://travis-ci.com/ProgrammingLanguageLeader/dictionary-profanity-filter.svg?token=NAXdZ3urs2rzWv4x9zhq&branch=master)](https://travis-ci.com/ProgrammingLanguageLeader/dictionary-profanity-filter)\n[![PyPI version](https://badge.fury.io/py/dictionary-profanity-filter.svg)](https://badge.fury.io/py/dictionary-profanity-filter)\n\nPython module for profanity filtering using dictionaries. \nIt supports English and Russian languages out-of-the-box.\n\n## Requirements\n- Python 3.5 or higher\n\n## How to install\nUse the following command to install the package using pip:\n```bash\npip install dictionary-profanity-filter\n```\n\n## How to use\nHere are several examples of the module usage:\n\n- Creating ProfanityFilter instance:\n\n```python\nfrom dictionary_profanity_filter import ProfanityFilter\nprofanity_filter = ProfanityFilter()\n```\n\n- Adding custom words to censor:\n\n```python\nprofanity_filter.add_words(['censorship', 'blocking'])\nprofanity_filter.censor('I hate censorship and blocking!')\n# Output: 'I hate ********** and ********!'\n```\n\n- Detect bad words in the text:\n\n```python\nprofanity_filter.is_clean('Porn is a restricted word')\n# Output: False\n```\n\n- Removing word from custom dictionary:\n\n```python\nprofanity_filter.remove_word('blocking')\nprofanity_filter.censor('I hate censorship and blocking!')\n# Output: 'I hate ********** and blocking!'\n```\n\n## TODO\n- [ ] Write documentation\n- [x] Write tests\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ProgrammingLanguageLeader/dictionary-profanity-filter", "keywords": "", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "dictionary-profanity-filter", "package_url": "https://pypi.org/project/dictionary-profanity-filter/", "platform": "", "project_url": "https://pypi.org/project/dictionary-profanity-filter/", "project_urls": { "Homepage": "https://github.com/ProgrammingLanguageLeader/dictionary-profanity-filter" }, "release_url": "https://pypi.org/project/dictionary-profanity-filter/1.0.4/", "requires_dist": [ "DAWG-Python (==0.7.2)", "alphabet-detector (==0.0.7)", "docopt (==0.6.2)", "inflection (==0.3.1)", "pymorphy2-dicts (==2.4.393442.3710985)", "pymorphy2 (==0.8)" ], "requires_python": "", "summary": "Python profanity filter", "version": "1.0.4" }, "last_serial": 5162273, "releases": { "1.0.3.1": [ { "comment_text": "", "digests": { "md5": "964ac5c3465f52346338896507b4504b", "sha256": "019c8e80080e426e605034d99a5c778d85f850d3bf566af2185d6db8f097c71b" }, "downloads": -1, "filename": "dictionary_profanity_filter-1.0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "964ac5c3465f52346338896507b4504b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11072, "upload_time": "2019-04-14T22:35:13", "url": "https://files.pythonhosted.org/packages/a5/d6/2d63495159ad2dc22a1e847dfc78e1cb616c046701128804447d3b88102a/dictionary_profanity_filter-1.0.3.1-py3-none-any.whl" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "6750c6c491154f408cec495379026021", "sha256": "39a70111196ba43a52d64db352c332a8ebde78683d2ede4e9beabe7579811924" }, "downloads": -1, "filename": "dictionary_profanity_filter-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "6750c6c491154f408cec495379026021", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11097, "upload_time": "2019-04-18T21:24:31", "url": "https://files.pythonhosted.org/packages/29/fd/7fad034c5043fa747232bde5244a586d0053a6f84abd4bcdf8aaa13f198d/dictionary_profanity_filter-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d4b46a2a90288a289d7327db80139620", "sha256": "6d141c5fddec6f210a6ce0467207a9b8d89f5ee4b5c58eb64560636fa1c6fc63" }, "downloads": -1, "filename": "dictionary-profanity-filter-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d4b46a2a90288a289d7327db80139620", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9922, "upload_time": "2019-04-18T21:24:33", "url": "https://files.pythonhosted.org/packages/bf/7a/44418f1488b3ed32b79207866b055ca4fc25b5696475735cee9283453b90/dictionary-profanity-filter-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6750c6c491154f408cec495379026021", "sha256": "39a70111196ba43a52d64db352c332a8ebde78683d2ede4e9beabe7579811924" }, "downloads": -1, "filename": "dictionary_profanity_filter-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "6750c6c491154f408cec495379026021", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11097, "upload_time": "2019-04-18T21:24:31", "url": "https://files.pythonhosted.org/packages/29/fd/7fad034c5043fa747232bde5244a586d0053a6f84abd4bcdf8aaa13f198d/dictionary_profanity_filter-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d4b46a2a90288a289d7327db80139620", "sha256": "6d141c5fddec6f210a6ce0467207a9b8d89f5ee4b5c58eb64560636fa1c6fc63" }, "downloads": -1, "filename": "dictionary-profanity-filter-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d4b46a2a90288a289d7327db80139620", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9922, "upload_time": "2019-04-18T21:24:33", "url": "https://files.pythonhosted.org/packages/bf/7a/44418f1488b3ed32b79207866b055ca4fc25b5696475735cee9283453b90/dictionary-profanity-filter-1.0.4.tar.gz" } ] }