1.0.2 • Published 4 years ago

smart-sensitive-word v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Smart-Sensitive-Word 智能敏感词识别

用 Javascript 实现的智能识别敏感词,正确率高达 100%

在线链接

点这里体验

Usage

npm

安装

npm i smart-sensitive-word -S

引入

import { filter } from "smart-sensitive-word"
const word = "anything you want to test"
console.log(filter(word, "*")) // [try it by yourself]

script

安装

<script src=""></script>

引入

const { filter } = SmartSensitiveWord;
const word = "anything you want to test"
console.log(filter(word)) // [try it by yourself]

API

filter(text<string>, replaceWord<string>)

paramsdesctypedefault
text用户需要进行敏感词筛选的文本string-
replaceWord用于替换敏感词的字符string*

Special Sponsers