Getting Started
Multi-language profanity detection library with advanced context-aware filtering
Intelligent Profanity Detection for Modern Apps
Glin-Profanity goes beyond simple word matching with advanced context-aware filtering, 23-language support, and perfect cross-platform compatibility.
Core Functions
Framework-agnostic API
React Integration
Built-in hooks and state
Context Analysis
Advanced NLP features
Dictionary API
Real-time updates
23 Languages Supported
Comprehensive profanity detection across global languages with shared dictionary management:
Context-Aware Intelligence
Traditional Word Filter
Glin-Profanity Context-Aware
Quick Start
Available for both ecosystems
Simple, clean API
Context-aware detection
Advanced Features
Context-Aware Intelligence
Advanced NLP analysis distinguishes positive from negative contexts to reduce false positives by up to 85%
23 Language Support
Comprehensive profanity detection across 23 languages with shared dictionary management
Obfuscation Detection
Catches disguised profanity with sophisticated pattern matching for sh1t, f*ck, a$$hole
Severity Classification
EXACT vs FUZZY matching with minimum severity filtering for granular control
React Integration
Built-in hooks with state management, error boundaries, and performance optimization
High Performance
Optimized algorithms with caching, early termination, and sub-millisecond detection speeds
Use Cases
Chat & Social
Real-time messaging and social platforms
Gaming
In-game chat with positive context awareness
Media & Entertainment
Content moderation for reviews and comments
E-commerce
Product reviews and customer feedback
Education
Student submissions and classroom discussions
Enterprise
Internal communications and compliance
Core Principles
Context First
Advanced NLP over simple word matching
Speed Matters
Sub-millisecond detection with caching
Global Ready
23 languages with Unicode support
Production Grade
130+ tests with enterprise reliability
Precision Control
Severity levels and domain intelligence
Cross-Platform
Perfect JavaScript/Python parity
Why Glin-Profanity?
Unlike traditional profanity filters that rely on simple word matching, Glin-Profanity uses advanced context-aware analysis to understand the sentiment and intent behind text. This sophisticated approach dramatically reduces false positives while maintaining high accuracy in detecting truly inappropriate content.
The Problem with Traditional Filters
Most profanity detection systems suffer from high false positive rates because they can't understand context:
- "This movie is fucking amazing!" → ❌ Flagged as inappropriate (but it's positive!)
- "That boss fight is badass!" → ❌ Flagged in gaming contexts (but it's praise!)
- "Damn good coffee!" → ❌ Flagged as profane (but it's a compliment!)
The Glin-Profanity Difference
Our context-aware system understands nuance and intent:
- Advanced NLP Analysis - Examines surrounding words and sentiment patterns
- Domain Intelligence - Recognizes gaming, movie, and product contexts
- Cross-Language Consistency - 23 languages with identical behavior
- Production Testing - 130+ comprehensive tests ensure reliability
Cross-Platform Excellence
Perfect feature parity between JavaScript/TypeScript and Python implementations:
import { checkProfanity } from 'glin-profanity';
const result = checkProfanity('This is damn good!', {
enableContextAware: true,
languages: ['english']
});
console.log(result.containsProfanity); // false - positive context detectedfrom glin_profanity import Filter
filter_instance = Filter({
"enable_context_aware": True,
"languages": ["english"]
})
result = filter_instance.check_profanity("This is damn good!")
print(result["contains_profanity"]) # False - positive context detectedEnterprise Ready
Glin-Profanity is built for production environments with enterprise-grade features:
- Comprehensive Testing - 130+ tests covering all features and edge cases
- Semantic Versioning - Reliable upgrade paths with clear change documentation
- Performance Optimized - Sub-millisecond detection with intelligent caching
- Memory Efficient - Optimized for high-volume applications
- Error Resilient - Graceful degradation and comprehensive error handling
Glin-Profanity is part of the GLINR Studio ecosystem, bringing the same attention to quality and developer experience as our other professional tools like CommitWeave.