{"id":17216503,"url":"https://github.com/ieshaan12/pyprofane","last_synced_at":"2025-04-13T23:22:40.671Z","repository":{"id":57456304,"uuid":"293047295","full_name":"ieshaan12/PyProfane","owner":"ieshaan12","description":"A library to censor and detect offensive words in strings.","archived":false,"fork":false,"pushed_at":"2020-10-17T11:10:14.000Z","size":37,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:39:49.483Z","etag":null,"topics":["hacktoberfest","profanity","profanity-detection","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/PyProfane/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ieshaan12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-05T09:49:45.000Z","updated_at":"2021-12-25T07:24:30.000Z","dependencies_parsed_at":"2022-09-14T05:10:56.810Z","dependency_job_id":null,"html_url":"https://github.com/ieshaan12/PyProfane","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieshaan12%2FPyProfane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieshaan12%2FPyProfane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieshaan12%2FPyProfane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieshaan12%2FPyProfane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ieshaan12","download_url":"https://codeload.github.com/ieshaan12/PyProfane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795175,"owners_count":21162725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","profanity","profanity-detection","python3"],"created_at":"2024-10-15T03:27:53.840Z","updated_at":"2025-04-13T23:22:40.649Z","avatar_url":"https://github.com/ieshaan12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PyProfane\n\n[![Build Status](https://travis-ci.com/ieshaan12/PyProfane.svg?branch=master)](https://travis-ci.com/ieshaan12/PyProfane)\n\n### Why I made this?\n\nI went through a few libraries for profane languages like `profanity`, `profanity-check` and `profanity-filter`. While they're all good in their own right, I couldn't find one that suited my needs. \n\n### Installation\n\n`pip install PyProfane`\n\n### Features\n\nThe special thing about this python library is that it uses soundex to detect even slightly misspelled words to detect if they're profane or not. Of course this is not a mighty addition but I feel like this can be useful. \n\nPlease note that it uses an explicit blacklist which can be modified as when you need as I have included a function `updateSwearwords(filename)` \n\n### Usage\n\n`from PyProfane import censorWord, censorSentences, isProfane`\n\n```\nsentence = \"you're a piece of shit\"\nword = \"slutty\"\nsentences = [\"you're a piece of shit\",\n 'fucking whore',\n 'why you such a cumslut',\n 'an online whore',\n 'fucking wanker',\n 'hey, hope you do great!',\n 'sluttyyyy whoreeee',\n 'wear a dress']\n\nprint(isProfane(sentence))  # returns True\n\nprint(censorWord(word)) # returns 's%!$ty'\n\nprint(censorSentences(sentences))\n'''\nreturns\n[\"you're a piece of s!it\",\n 'f#%$ing w#%re',\n 'why you such a cu#%$ut',\n 'an online w#%re',\n 'fu#%$ng w#%$er',\n 'hey, hope you do great!',\n 's#ut%$!yy w#o%$!ee',\n 'wear a dress']\n'''\n```\n\n### Data\n\nThe data for swear words has been taken from a subset of:\n\n- [Bad Bad Words - Kaggle](https://www.kaggle.com/nicapotato/bad-bad-words)\n\n- [Banned Words - data.world](https://data.world/natereed/banned-words-list)\n\nI just randomly included and deleted some of the words as I felt like, but please feel free to add more words by making pull requests.\n\n### Caveats\n\nLike I said, this is exclusive to the swear words blacklist i.e. the data.\n\n### Contributing\n\nFeel free to make suggestions, raise pull requests, and report issues. After all we're human and there can be problems with this bot.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fieshaan12%2Fpyprofane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fieshaan12%2Fpyprofane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fieshaan12%2Fpyprofane/lists"}