Test, validate and match regular expressions
A comprehensive Russian profanity filter that matches major obscene stems (бля-, бляд-, ху-, пизд-, пид(ор)-, гандон-, еб-/ёб-) in any word form or inflection. It uses negative lookaheads to avoid false positives on innocent words like 'оскорблять' (to offend) and 'небо' (sky), while catching standalone and embedded swear words. Intended for chat moderation and user-generated content filtering, though the author admits it's 'almost perfect' due to the complexity of Russian morphology.