# observerss/textfilter

敏感词过滤的几种实现+某1w词敏感词库

Repository: https://github.com/observerss/textfilter
Canonical: https://ross.abutalabs.com/products/textfilter
Language: Python
License Family: other
Last push: 2021-08-20T05:11:02+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5355, "days_push": 1839, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2108, forks 819 (observed 2026-08-28T04:06:14.058123+00:00)

## What it is
A small Python library implementing several sensitive-word filtering algorithms (including DFA) bundled with a ~10k-word sensitive word list. It replaces matched words in text with asterisks.

## Use cases
- filter profanity from user comments
- censor sensitive words in chat messages
- mask banned words in user-generated content
- build a content moderation pipeline in Python
- check text against a sensitive word dictionary

## When to choose
- you need a lightweight, dependency-free word filter in Python
- you want a ready-made Chinese sensitive word list
- you prefer simple DFA-based matching you can read and modify

## When to avoid
- you need regularly updated word lists or active maintenance
- you need fuzzy matching, pinyin, or evasion-resistant filtering
- you need a hosted moderation API with ML-based detection

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, parser
- domain: text-editors, developer-tools
- platform: python, cross-platform
- tags: sensitive-word-filter, dfa, profanity-filter, chinese-text, wordlist, natural-language-processing

## Member repositories
- observerss/textfilter (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:14.058123+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:53:53.530823+00:00, confidence not recorded.
  - readme: https://github.com/observerss/textfilter (fetched 2026-08-28T04:06:14.058123+00:00, sha b36d09a0746f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
