abdoutelb / sensitive-word

a package to filter the sensitive words from articles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Hiding sensitive-words

Example

$ npm install sensitive-words --save
const {sensitiveWords} = require('sensitive-words')
// ES2015 modules
import {sensitiveWords} from 'sensitive-words'

const filtered = sensitiveWords(
    'The new apple makbook pro will have a touchbar',
    ['pro','touchbar']
)
console.log(filtered)
// The new apple makbook *** will have a ***

About

a package to filter the sensitive words from articles


Languages

Language:JavaScript 100.0%