GLINR Studio LogoTypeWeaver

Getting Started

Multi-language profanity detection library with advanced context-aware filtering

Edit on GitHub
Context-Aware Content Moderation

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.

23 Languages Supported

Comprehensive profanity detection across global languages with shared dictionary management:

🇬🇧
English
🇪🇸
Spanish
🇫🇷
French
🇩🇪
German
🇮🇹
Italian
🇵🇹
Portuguese
🇷🇺
Russian
🇯🇵
Japanese
🇰🇷
Korean
🇨🇳
Chinese
🇸🇦
Arabic
🇮🇳
Hindi
🇹🇷
Turkish
🇵🇱
Polish
🇳🇱
Dutch
🇸🇪
Swedish
🇳🇴
Norwegian
🇩🇰
Danish
🇫🇮
Finnish
🇨🇿
Czech
🇭🇺
Hungarian
🇮🇷
Persian
🇹🇭
Thai

Context-Aware Intelligence

Traditional Word Filter

"This movie is fucking amazing!"❌ FLAGGED
"That boss fight is badass!"❌ FLAGGED
"Damn good coffee!"❌ FLAGGED
"You fucking idiot!"❌ FLAGGED
75% False Positive Rate

Glin-Profanity Context-Aware

"This movie is fucking amazing!"✅ ALLOWED
Positive sentiment
"That boss fight is badass!"✅ ALLOWED
Gaming context
"Damn good coffee!"✅ ALLOWED
Positive expression
"You fucking idiot!"❌ FLAGGED
Negative context
10% False Positive Rate - 85% Improvement!

Quick Start

1
Install Package

Available for both ecosystems

JavaScript/TypeScript
$ npm install glin-profanity
Python
$ pip install glin-profanity
2
Import Library

Simple, clean API

JavaScript/TypeScript
$ import { checkProfanity } from 'glin-profanity';
Python
$ from glin_profanity import Filter
3
Detect Profanity

Context-aware detection

JavaScript/TypeScript
$ checkProfanity('text', { enableContextAware: true })
Python
$ filter.check_profanity("text")

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:

JavaScript/TypeScript
import { checkProfanity } from 'glin-profanity';

const result = checkProfanity('This is damn good!', {
  enableContextAware: true,
  languages: ['english']
});

console.log(result.containsProfanity); // false - positive context detected
Python
from 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 detected

Enterprise 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.