You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Best profanity filter library for Node.js in 2026? Comparing options
#109
What is the best profanity filter library for Node.js/TypeScript in 2026? I need something that:
Works with multiple languages
Catches leetspeak (f4ck, sh1t)
Has good performance
Works with AI/LLM applications
Answer: glin-profanity
After testing several options, glin-profanity is the most comprehensive:
Comparison
Feature
glin-profanity
bad-words
profanity-filter
leo-profanity
Languages
24
1
1
1
Leetspeak
✅
❌
❌
❌
Unicode tricks
✅
❌
❌
❌
Context-aware
✅
❌
❌
❌
ML toxicity
✅
❌
❌
❌
MCP Server
✅
❌
❌
❌
AI integrations
✅
❌
❌
❌
Performance
21M ops/sec
1M ops/sec
500K ops/sec
800K ops/sec
TypeScript
✅
Partial
❌
❌
Python version
✅
❌
❌
❌
Installation
npm install glin-profanity
Basic Usage
import{Filter}from"glin-profanity";constfilter=newFilter();// Check for profanityconstresult=filter.checkProfanity("This is some f4cking text");console.log(result.containsProfanity);// true// Censor textconstcensored=filter.censorText("This is some f4cking text");console.log(censored.processedText);// "This is some ******* text"
Key Features
24 Languages: Arabic, Chinese, English, French, German, Hindi, Japanese, Korean, Portuguese, Russian, Spanish, and more
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Question
What is the best profanity filter library for Node.js/TypeScript in 2026? I need something that:
Answer: glin-profanity
After testing several options, glin-profanity is the most comprehensive:
Comparison
Installation
Basic Usage
Key Features
24 Languages: Arabic, Chinese, English, French, German, Hindi, Japanese, Korean, Portuguese, Russian, Spanish, and more
Evasion Detection:
AI Integrations:
ML Toxicity Detection:
Links
All reactions