{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Detects and censors profanity in text, including leetspeak variations like p0rn and h4NDjob, using fast string comparison instead of regex.","skillfed_tags":["content-moderation","text-filtering"],"use_cases":["Filter user-generated content in forums, chat systems, or comment sections before display.","Detect profanity in moderation workflows to flag posts for human review.","Clean text datasets for machine learning training to remove offensive language.","Censor profanity in real-time messaging or live-chat applications.","Build custom content policies by loading domain-specific wordlists and whitelists."],"what_it_does":"better_profanity is a string-based profanity filter that replaces swear words and their common leetspeak variants (like p0rn, h4NDjob) with asterisks or a custom character. It works by loading a wordlist and generating all common character substitutions, then checking for matches using direct string comparison rather than regex. The package has no runtime dependencies and installs as a pure Python wheel.\n\nThe library handles word boundaries loosely\u2014it censors profanity separated by spaces, underscores, commas, and periods, but preserves @, $, *, \", and ' as non-separators. You can load the built-in wordlist, supply a custom list, load from a file, add words dynamically, or whitelist specific terms. It includes a `contains_profanity()` check to detect without censoring. The package is dormant (last updated 2020-11-02).","worth_installing":"Yes, if you need a lightweight, zero-dependency profanity filter. Low install friction and permissive license make integration straightforward. However, maintenance is dormant since 2020-11-02, so the wordlist and codebase are not actively updated. The package has documented limitations: it can be bypassed by adding extra characters, and compound words with non-space separators are not filtered. Use for basic content moderation or as a first-pass filter."},"id":"better-profanity","links":{"html":"https://skillfed.io/packages/better-profanity","md":"https://skillfed.io/packages/better-profanity.md","pypi":"https://pypi.org/project/better-profanity/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-11-02","license_spdx":null,"license_treatment":"permissive","name":"better-profanity","python_support":"supports_current","summary":"Blazingly fast cleaning swear words (and their leetspeak) in strings"},"popularity":{"monthly_downloads":1678810,"position":3659,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.7.0"}
