Multilingual Profanity Filter
Introduction
This project provides a profanity filter that supports multiple languages. It is designed to be easy to use and integrate into various applications. The filter uses a comprehensive list of profane words for each supported language, allowing it to effectively identify and filter out inappropriate content.
It uses the List of Dirty, Naughty, Obscene, and Otherwise Bad Words as its primary source for profane words, which is a widely used repository of such words in multiple languages.
Table of Contents 🗂
Supported Languages 🌐
The profanity filter currently supports the same languages as the LDNOOBWV2 repository, you can find it here.
Installation ⚙️
This package is available on PyPI, so you can install it using pip:
pip install multilingual-profanity
Usage ⌨️
Here's a simple example of how to use the ProfanityFilter class:
from multilingual_profanity import ProfanityFilter
pf = ProfanityFilter("nl")
print(pf.is_clean("fiets")) # Output: True
print(pf.is_clean("kanker")) # Output: False
Citation ✍️
If you use this project in your research, please cite as follows:
@misc{profanity_filter,
author = {Stephan Akkerman},
title = {Profanity Filter},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/StephanAkkerman/profanity-filter}}
}
Contributing 🛠
Contributions are welcome! If you have a feature request, bug report, or proposal for code refactoring, please feel free to open an issue on GitHub. We appreciate your help in improving this project.
License 📜
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for multilingual-profanity 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multilingual_profanity-0.1.2.tar.gz | 45.3 kB | Without provenance | Details for multilingual_profanity-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multilingual_profanity-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for multilingual_profanity-0.1.2-py3-none-any.whl |
Total release size: 87.7 kB
Release files / multilingual_profanity-0.1.2.tar.gz
| Download URL | multilingual_profanity-0.1.2.tar.gz |
|---|---|
| Size | 45.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
127d0f7109890faa26e5bc40450be7282ec4436f63bea9094d578c63c49cb722
|
|
BLAKE2b-256 checksum How to use checksums |
8e5b74e877cec9236a77a4d767c99ba6d03420c1692a60f944aef318f4692098
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / multilingual_profanity-0.1.2-py3-none-any.whl
| Download URL | multilingual_profanity-0.1.2-py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb14cdb3ae3efec0e5034f076f6c934b31ee88914e39ddad084ebb1ea57591ee
|
|
BLAKE2b-256 checksum How to use checksums |
76f7306eebf885ead35484b6c377ada12ab8abecbbaabb3360334e74405397c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for multilingual-profanity 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.