0.0.1 • Published 8 years ago

chinese-sensitive-words v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 years ago

Instructions for use about chinese-sensitive-words

1. Install

$ npm install chinese-sensitive-words

2. Usage

const chineseSensitiveWords = require('chinese-sensitive-words');

const arr = chineseSensitiveWords.check("xxxxx");

console.log(arr);

Parameter Description

const chineseSensitiveWords = require("chinese-sensitive-words");

const log = console.log;

/**
 * note :  The parameter can not be two or more than two,
 * otherwise execute the function according to the default parameters!
 * --------------------------------------------------------------------
 * @param {String} content
 * ------------------------
 * @return List
 */

log(chineseSensitiveWords.check("【内容仅做测试】:新闻上说的人体炸弹真的很恐怖,多么希望他们那里没有政治风波!"));
=> ['政治风波', '人体炸弹', '政治'];

log(chineseSensitiveWords.check("色情网站会影响青少年的健康成长,他们经受不住哪些性感诱惑的信息!"));
=> ['色情网站', '性感诱惑'];