Skip to content

mindfreq/wiqaya

Repository files navigation

🌐 العربية

Wiqaya 🛡️

A Python library for multilingual profanity detection and filtering. It identifies and censors offensive or abusive words across multiple languages.

Installation

pip install wiqaya

Usage

from wiqaya import Wiqaya

w = Wiqaya(lang="en")

w.is_profane("damn")        # True
w.is_profane("Hello World") # False
w.get_profane_words("this is damn annoying") # ['damn']

Note

The library automatically removes Arabic diacritics (Tashkeel) when using Arabic language mode

Tip

Wildcard patterns are supported in word lists — use * to match any sequence of characters (e.g., bad* matches badly, *word* matches anything containing word)

Supported Languages

Code Language Code Language Code Language
af Afrikaans am Amharic ar العربية
az Azerbaijani be Belarusian bg Bulgarian
ca Catalan ceb Cebuano cs Czech
cy Welsh da Danish de German
dz Dzongkha el Greek en English
eo Esperanto es Spanish et Estonian
eu Basque fa Persian fi Finnish
fil Filipino fr French gd Scottish Gaelic
gl Galician hi Hindi hr Croatian
hu Hungarian hy Armenian id Indonesian
is Icelandic it Italian ja Japanese
kab Kabyle kh Khmer ko Korean
la Latin lt Lithuanian lv Latvian
mi Maori mk Macedonian ml Malayalam
mn Mongolian mr Marathi ms Malay
mt Maltese my Burmese nl Dutch
no Norwegian pih Norfuk piy Picard
pl Polish pt Portuguese ro Romanian
rop Kriol ru Russian sk Slovak
sl Slovenian sm Samoan sq Albanian
sr Serbian sv Swedish ta Tamil
te Telugu tet Tetum th Thai
tlh Klingon to Tongan tr Turkish
uk Ukrainian uz Uzbek vi Vietnamese
yid Yiddish zh Chinese zu Zulu

About

Python library for detecting and filtering profanity in multiple languages.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages