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.Dis
8000
miss alert
We are excited to announce the release of Glin-Profanity v2.0.0! This major version introduces powerful new features and enhanced accuracy for profanity detection, addressing many community-reported issues and adding advanced matching capabilities.
✨ What's New in v2.0.0
1. Obfuscated Profanity Detection
The filter now detects obfuscated profanities such as:
f*ck
fuuuuck
shiiiit
a$$hole
You can enable this behavior using the allowObfuscatedMatch configuration.
2. Fuzzy Matching with Tolerance Level
A new fuzzy matching system has been added to catch misspelled or intentionally distorted profanities. You can configure the detection sensitivity using the fuzzyToleranceLevel option (range: 0.5 - 1):
fuzzyToleranceLevel: 0.7// Lower = more aggressive detection
3. False Positive Handling (Word Boundaries Fix)
Improved word boundary behavior to avoid false positives on innocent words like:
"classic" (earlier flagged because of "ass")
"button" (earlier flagged because of "butt")
These words are now correctly marked as non-profane.
4. Dynamic Custom Words Input
In the React demo/testing app, users can now input custom profane words directly in a JSON textarea input instead of uploading a file. This greatly improves testing speed and flexibility.
5. Severity Levels Improved
Severity detection now clearly categorizes profanity matches as:
Exact Match
Fuzzy Match
Obfuscated/Merged Match
6. Overall Performance Optimizations
Reduced unnecessary checks in the filter loop.
Cleaned and optimized regex & normalization logic.
React Hook (useProfanityChecker) enhanced for faster reactivity.
🐛 Bug Fixes
Fixed broken behavior in word boundary matching.
Fixed crash when dictionary term contained whitespace.
Fixed severity mapping errors in processed text.
Prevented double counting of profanities.
🔥 Breaking Changes
Minimum Node.js version is now 14+.
Some configuration keys may have been renamed or modified.
Please refer to the updated documentation.
⚙️ Upcoming in v2.1.x
Dynamic dictionary injection at runtime.
Real-time profanity detection support for chat applications.
Multilingual profanity detection improvements.
WebSocket-based profanity stream filter.
Better TypeScript typings & advanced use cases examples.
📥 Installation
npm install glin-profanity
OR
yarn add glin-profanity
📝 What's Changed
✅ Introduced Obfuscated Match Detection
✅ Introduced Fuzzy Match Tolerance
✅ Word Boundaries accuracy improved
✅ Dynamic textarea-based custom word input in demo app
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.
-
🚀 Release Notes: Glin-Profanity v2.0.0
We are excited to announce the release of Glin-Profanity v2.0.0! This major version introduces powerful new features and enhanced accuracy for profanity detection, addressing many community-reported issues and adding advanced matching capabilities.
✨ What's New in v2.0.0
1. Obfuscated Profanity Detection
The filter now detects obfuscated profanities such as:
f*ck
fuuuuck
shiiiit
a$$hole
You can enable this behavior using the
allowObfuscatedMatch
configuration.2. Fuzzy Matching with Tolerance Level
A new fuzzy matching system has been added to catch misspelled or intentionally distorted profanities. You can configure the detection sensitivity using the
fuzzyToleranceLevel
option (range:0.5 - 1
):3. False Positive Handling (Word Boundaries Fix)
Improved word boundary behavior to avoid false positives on innocent words like:
These words are now correctly marked as non-profane.
4. Dynamic Custom Words Input
In the React demo/testing app, users can now input custom profane words directly in a JSON textarea input instead of uploading a file. This greatly improves testing speed and flexibility.
5. Severity Levels Improved
Severity detection now clearly categorizes profanity matches as:
6. Overall Performance Optimizations
🐛 Bug Fixes
🔥 Breaking Changes
Please refer to the updated documentation.
⚙️ Upcoming in v2.1.x
📥 Installation
OR
📝 What's Changed
Thank you for using Glin-Profanity.
For feedback or contributions, visit Glin-Profanity on GitHub.
What's Changed
New Contributors
Full Changelog: v1.1.9...v2.0.0
This discussion was created from the release Glin-Profanity v2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions