thai_profanity_filter 0.1.0
thai_profanity_filter: ^0.1.0 copied to clipboard
Thai-aware profanity filter: detect, censor, and score Thai bad words with evasion handling (spacing, repeats, zero-width) and a false-positive allow-list, dependency-free pure Dart.
Changelog #
0.1.0 #
Initial release.
ThaiProfanityFilterwithhasProfanity,isClean,severityOf,findMatches, andcensor.- Three
Severitytiers (mild / moderate / severe) with a configurableminSeveritythreshold. - Evasion handling: repeated-character collapsing, spaced-letter joining, and
zero-width-character stripping (toggle with
detectEvasion). - Bundled starter Thai word list plus a false-positive allow-list, both fully
extendable via
extraWords,removeWords, andallowList. - Match positions reported as indices into the original input string.
- Pure Dart, no dependencies.