{"id":18765262,"url":"https://github.com/r1ck404/profanitydetection","last_synced_at":"2025-04-13T05:11:18.795Z","repository":{"id":191006428,"uuid":"614254558","full_name":"R1ck404/ProfanityDetection","owner":"R1ck404","description":"A simple implementation of an algorithm that detects bad words.","archived":false,"fork":false,"pushed_at":"2024-02-29T16:45:49.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T22:02:56.892Z","etag":null,"topics":["algorithms","detection","detection-algorithm","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R1ck404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-15T08:06:07.000Z","updated_at":"2024-01-28T22:25:09.000Z","dependencies_parsed_at":"2024-02-29T17:53:01.210Z","dependency_job_id":"e20661c8-d1d1-43ef-a50b-d8183c466e67","html_url":"https://github.com/R1ck404/ProfanityDetection","commit_stats":null,"previous_names":["r1ck404/badworddetection","r1ck404/profanitydetection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R1ck404%2FProfanityDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R1ck404%2FProfanityDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R1ck404%2FProfanityDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R1ck404%2FProfanityDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R1ck404","download_url":"https://codeload.github.com/R1ck404/ProfanityDetection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665746,"owners_count":21142123,"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":["algorithms","detection","detection-algorithm","python"],"created_at":"2024-11-07T18:33:24.140Z","updated_at":"2025-04-13T05:11:18.771Z","avatar_url":"https://github.com/R1ck404.png","language":"Python","readme":"# Profanity Detector\nThis project is a Python program for detecting bad words in a given text. The program includes a class called BadWordDetector, which reads a file of bad words and provides a detect() method that compares each word in a given text to the list of bad words and returns any detected bad words with their closest match and similarity percentage.\n\nThe program uses a simple algorithm to calculate the similarity between two words based on the number of common letter pairs in the two words. It is a lightweight and easy-to-understand implementation, making it accessible to developers of all skill levels.\n\nThe program can be used as a standalone script or easily integrated into larger applications. It is a useful tool for detecting bad language and inappropriate content in user-generated content.\n\n## Usage Example\n```py\nfrom Model import BadWordDetector\n\ndetector = BadWordDetector('badwords.txt')\ntext = 'This is a test string and this repository is amazing like howly shhhhhit. this is really amazing tho like shhiiit'\n\ndetected_words = detector.detect(text)\nif detected_words:\n    for word in detected_words:\n        print(f'{word[0]} ({word[1]}, {word[2]*100:.2f}% similarity)')\nelse:\n    print('No bad words detected')\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr1ck404%2Fprofanitydetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr1ck404%2Fprofanitydetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr1ck404%2Fprofanitydetection/lists"}