ToolGood.Words is a multi-language library for detecting and replacing sensitive words, with pinyin helpers and traditional or simplified Chinese transforms.
Overview
ToolGood.Words provides fast string-matching components for illegal or sensitive word detection in text. The C# implementation reports very high throughput on large keyword dictionaries and exposes several search classes with find, replace, and keyword loading APIs.
Beyond basic contains and replace operations, the project includes variants with wildcard-style matchers, extended result types that record positions, and dedicated illegal-word search with skip-word and blacklist controls. Save and load helpers accelerate initialization for larger keyword lists.
Additional modules handle traditional and simplified Chinese conversion, full-width and half-width normalization, numeric Chinese uppercase, and pinyin-based fuzzy lookup. Ports or references are listed for Lua, Java, Go, JavaScript, and Python ecosystems.
A separate open-source content moderation system built by the same author is also referenced. ToolGood.Words itself is a library meant to be embedded inside applications that must filter user-generated text.
Key features
- Sensitive word detection and replace
- Multiple string search implementations
- Position-aware match results
- Skip words and blacklist controls
- Traditional and simplified conversion
- Pinyin matching helpers
- Fast dictionary load and save
Use cases
- Content moderation in web forums
- Filtering chat or comment submissions
- Chinese text normalization pipelines
- High-volume keyword screening services