A sensitive word filtering algorithm implemented in Go.
The sensitive word detection uses an HTTP server to receive input and then performs validation.
Steps to use:
git clone https://github.com/lqxhub/sensitive-words-filter.git
cd sensitive-words-filter/example
go build
- run example
- open the address 127.0.0.1:8081 in a web browser.
Input the words to check in the input box to perform detection.
The rules for sensitive words are in the rule.txt file, with one rule per line.