Socket
Book a DemoInstallSign in
Socket

no-bads

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-bads

For finding profanity in sentence or word. This library will help you to find the bad words

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

no-bads

npm version

no-bads

Javascript library for finding bad words (profanity). This library will help you to check bad words in user input fields like feedback form, username entry, messages, etc.

This library is still under development. For avoiding issues like, the word 'Hello' is a bad word because it contains "Hell". For avoiding this issues, I've created a exceptions list.

Supported Languages: English If anyone has details of any language, add the json array file containing the bad words in lib/bads folder.

The filename should be like this "bads_language code>.json"

Usage

var NoBads = require('no-bads'),
   filter = new NoBads({languages:['en']});


var word = "Where is that hell"
console.log(filter.isBad(word));

Options

{
  languages:["en","mal"],//en- English (default), mal- Malayalam
  disableDefaultException:true,//false by-default (true -> disable all default exception words)
  include:["custom"],//includes custom words that needs to be avoided
  exclude:["hell"],//excludes the word hell, now hell is not a bad word
}

Keywords

react-native-bad

FAQs

Package last updated on 09 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.