houbb / sensitive-word

👮‍♂️The sensitive word tool for java.(敏感词/违禁词/违法词/脏词。基于 DFA 算法实现的高性能 java 敏感词过滤工具框架。请勿发布涉及政治、广告、营销、翻墙、违反国家法律法规等内容。高性能敏感词检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。)
https://houbb.github.io/opensource/sensitive-word
Apache License 2.0
4.36k stars 589 forks source link

设置了ignoreNumStyle(true),如果敏感词里有“18禁”等1开头的,中文的类似“一条狗”的敏感词查不到 #12

Closed luomiwhy closed 2 years ago

luomiwhy commented 3 years ago

“一”被转换为“1”了,后续也没有再去匹配“一”。

houbb commented 2 years ago

不好意思,一直忘记回复了。

V0.1.1 这个问题进行修复,可以验证下。