awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
houbb avatar

houbb/sensitive-word

0
View on GitHub↗
5,896 stars·790 forks·Java·Apache-2.0·22 viewshoubb.github.io/opensource/sensitive-word↗

Sensitive Word

This project is a high-performance Java library and content moderation framework designed to detect and mask prohibited words in text. It utilizes a Deterministic Finite Automaton (DFA) scanner to implement efficient longest-match word detection.

The engine distinguishes itself through a text normalization pipeline and noise-filtering preprocessor that standardize character casing, scripts, and widths while removing interspersed special characters to prevent filter evasion. It supports dynamic dictionary management, allowing blacklists and allow-lists to be updated in the background without requiring a system restart.

The framework covers a broad range of moderation capabilities, including tag-based word classification for violation categorization, recursive match processing to handle nested sensitive words, and pattern detection for identifying structured data like URLs and email addresses. It also includes utilities for input sanitization to remove HTML tags and script elements.

Features

  • DFA-Based Scanning - Implements a high-performance DFA scanner for efficient longest-match sensitive word detection.
  • Content Moderation Filters - Scans text against configurable blacklists to detect and mask prohibited content in a high-performance framework.
  • Sensitive Word Filters - Provides a noise-filtering preprocessor to detect banned terms hidden by interspersed special characters or filler symbols.
  • Input Validation and Sanitization - Provides libraries for validating, masking, and sanitizing data to prevent offensive content.
  • Evasion-Resistant Normalization - Standardizes character casing, script styles, and width formats before matching to prevent evasion via formatting tricks.
  • Finite Automaton Search - Utilizes a Deterministic Finite Automaton for high-performance pattern matching and sensitive word detection.
  • Finite Automaton Search Algorithms - Implements high-performance keyword matching in Java using the Deterministic Finite Automaton algorithm for fast content scanning.
  • Longest-Match String Resolution - Prioritizes the longest matching sequence from the dictionary to ensure precise identification of complex sensitive phrases.
  • Filter Evasion Normalization - Standardizes text scripts, character widths, and case to prevent users from bypassing filters with formatting tricks.
  • Filter Evasion Normalization - Standardizes case, character width, and script styles to prevent users from bypassing filters with formatting tricks.
  • Longest-Match Word Detection - Implements a high-precision longest-match algorithm using a DFA to identify prohibited words in text.
  • Dictionary Management - Provides administrative management for sensitive word dictionaries and allow-lists to tailor prohibited content detection.
  • Noise Character Filtering - Ignores specific characters or stop words during scanning to find sensitive terms hidden by filler symbols.
  • Permutation Analysis - Analyzes reversed character sequences and phonetic variations to detect sensitive words intended to bypass filters.
  • Data Detection Patterns - Combines dictionary lookups with regular expressions to detect structured data such as URLs, emails, and IP addresses.
  • Violation Category Tagging - Associates metadata labels with dictionary entries to enable filtering and processing based on specific violation categories.
  • Dynamic Blocklist Modification - Adds or removes specific words from the blacklist without requiring a full re-initialization of the engine.
  • Filter Evasion Normalizers - Standardizes case, character width, and script styles to prevent filter evasion via formatting tricks.
  • Dictionary Hot-Reloading - Allows updating sensitive word blacklists and allow-lists in the background without requiring a system restart.
  • Intervening Character Filtering - Filters out specified special characters during scanning to find words intentionally separated by noise.
  • Content Cleaning - Removes URLs, phone numbers, and corrupted characters to isolate the core message for analysis.
  • Dynamic List Updates - Adds or removes words from blacklists and whitelists dynamically to update detection without restarting the system.
  • Dynamic Exception Management - Adds or removes specific words from an exception list dynamically to prevent false positives without restarting.
  • Recursive Filtering - Scans and filters text repeatedly until no new sensitive words emerge from previous replacements.
  • Middleware-Based Masking - Replaces sensitive words with alternative characters or masks based on custom replacement strategies.
  • Violation Categorization - Assigns labels to detected words to distinguish between different violation types, such as fraud or violence.
  • False Positive Filtering - Reduces false positives using custom conditions, such as category tags or full-word requirements.
  • Recursive Replacement Loops - Scans and filters text repeatedly until no new sensitive words are formed by previous replacement operations.
  • Dictionary Background Refresh - Updates the active sensitive word library in the background to maintain current lists without interrupting existing operations.

Star history

Star history chart for houbb/sensitive-wordStar history chart for houbb/sensitive-word

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Sensitive Word

Similar open-source projects, ranked by how many features they share with Sensitive Word.
  • zongzibinbin/mallchatzongzibinbin avatar

    zongzibinbin/MallChat

    4,648View on GitHub↗

    MallChat is an e-commerce backend system and real-time messaging platform. It provides a server-side infrastructure for managing online stores, including integrated shopping carts, order processing, and payment workflows. The system features a WebSocket chat server for instant customer communication and a content moderation engine that uses pattern matching to block sensitive language. It integrates large language models to provide automated conversational AI chatbots for customer support and product recommendations. Identity management is handled through a token-based authentication system

    Java
    View on GitHub↗4,648
  • toolgood/toolgood.wordstoolgood avatar

    toolgood/ToolGood.Words

    5,161View on GitHub↗

    ToolGood.Words is a sensitive word filtering library and text sanitization component designed for high-performance detection and masking of prohibited terms. It provides tools for Chinese text normalization, pinyin transliteration, and the replacement of banned words with placeholders. The project is distinguished by its ability to uncover obfuscated language through a pinyin transliteration engine and phonetic-based detection. It identifies sensitive content hidden by phonetic substitutions, first-letter initials, or intentional misspellings by mapping Chinese characters to pinyin representa

    JavaScriptaho-corasickdotnetfilter
    View on GitHub↗5,161
  • protectai/llm-guardprotectai avatar

    protectai/llm-guard

    2,561View on GitHub↗

    LLM Guard is a security firewall and guardrail framework designed to scan and sanitize inputs and outputs for large language models. It functions as a proxy gateway and security layer to block prompt injections, toxicity, and sensitive data leakage while ensuring that model interactions remain compliant with organizational policies. The system distinguishes itself through a modular scanner pipeline that utilizes local model orchestration to eliminate external network dependencies. It supports real-time security filtering via streaming chunk analysis and implements a fail-fast execution model

    Pythonadversarial-machine-learningchatgptlarge-language-models
    View on GitHub↗2,561
  • dromara/hutooldromara avatar

    dromara/hutool

    30,279View on GitHub↗

    Hutool is a comprehensive suite of Java extensions designed to serve as a standard library extension. Its primary purpose is to reduce development boilerplate for common programming tasks and data manipulation through a collection of utility classes. The project provides specialized toolkits for database management using active record patterns and connection pooling, as well as network communication via a simplified HTTP client and asynchronous socket management. It includes security and identity capabilities such as symmetric and asymmetric encryption, image captcha generation, and JWT token

    Java
    View on GitHub↗30,279
See all 30 alternatives to Sensitive Word→

Frequently asked questions

What does houbb/sensitive-word do?

This project is a high-performance Java library and content moderation framework designed to detect and mask prohibited words in text. It utilizes a Deterministic Finite Automaton (DFA) scanner to implement efficient longest-match word detection.

What are the main features of houbb/sensitive-word?

The main features of houbb/sensitive-word are: DFA-Based Scanning, Content Moderation Filters, Sensitive Word Filters, Input Validation and Sanitization, Evasion-Resistant Normalization, Finite Automaton Search, Finite Automaton Search Algorithms, Longest-Match String Resolution.

What are some open-source alternatives to houbb/sensitive-word?

Open-source alternatives to houbb/sensitive-word include: zongzibinbin/mallchat — MallChat is an e-commerce backend system and real-time messaging platform. It provides a server-side infrastructure… toolgood/toolgood.words — ToolGood.Words is a sensitive word filtering library and text sanitization component designed for high-performance… protectai/llm-guard — LLM Guard is a security firewall and guardrail framework designed to scan and sanitize inputs and outputs for large… dromara/hutool — Hutool is a comprehensive suite of Java extensions designed to serve as a standard library extension. Its primary… cure53/dompurify — DOMPurify is a security-focused library designed to sanitize untrusted HTML input, preventing cross-site scripting… chriso/validator.js — validator.js is a JavaScript string validation and sanitization library. It provides a set of functions to verify that…