toolgood/toolgood.words

一款高性能敏感词(非法词/脏字)检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 53 minutes ago
Added to GitGenius on September 13th, 2026
Created on December 19th, 2016
Open Issues & Pull Requests: 11 (+0)
GitHub issues: Enabled
Number of forks: 876
Total Stargazers: 5,187 (+0)
Total Subscribers: 99 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 17.1 hours
Mean response time: 31.9 hours
90th percentile: 46.8 hours
Tracked items: 2

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 463 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

ToolGood.Words is a sensitive word detection and filtering component that uses string matching algorithms to identify and filter prohibited content in text.

The tool addresses the problem of efficiently detecting sensitive words, illegal content, and profanity in large volumes of text. It employs Aho-Corasick and trie-tree based algorithms to achieve high-speed filtering. The core implementations include multiple search classes optimized for different use cases: StringSearch variants return matched strings, WordsSearch variants return detailed results including position and sequence information, and IllegalWordsSearch provides specialized filtering with configurable skip-word handling and blacklist support. The tool also supports wildcard matching with partial regex syntax including dots, question marks, brackets, and pipe operators.

Developers should choose this tool when building content moderation systems that require fast, accurate detection across large datasets. It suits projects handling user-generated content, chat filtering, or document scanning where performance matters. The tool includes utility functions beyond core filtering: simplified-traditional Chinese conversion, full-width to half-width character normalization, pinyin conversion and matching, and fuzzy search capabilities. These supplementary features make it useful for applications serving Chinese-language audiences. The README does not compare this tool to alternatives, so no comparative guidance can be offered.

Development activity shows consistent maintenance with multiple specialized implementations addressing different performance requirements. The project maintains separate optimized variants including pointer-based versions for performance-critical scenarios. The codebase includes serialization support through Save and Load methods to accelerate initialization in production environments. The tool provides both basic and extended search classes, allowing developers to select implementations matching their specific needs rather than forcing a one-size-fits-all approach.