Installation
Install the package
sh
pip install no-nepali-profanitysh
uv add no-nepali-profanitysh
poetry add no-nepali-profanityRequirements
- Python 3.9 or later.
The package has no dependencies outside the standard library.
Import it
The distribution is called no-nepali-profanity; the module is no_nepali_profanity:
py
from no_nepali_profanity import contains_profanity, find_profanityType hints
The package ships a py.typed marker, so mypy and Pyright check your calls against its type hints. Options are a plain dict:
py
from no_nepali_profanity import create_filter
options = {"languages": ["romanized", "devanagari"], "strictness": "standard"}
profanity_filter = create_filter(options)