Skip to content
A highly consumable list of bad (profanity) english words
Branch: master
Clone or download

Latest commit

Latest commit 93a1dbb Aug 17, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Sep 24, 2013
LICENSE Initial commit Sep 24, 2013
README.md Update README.md Aug 17, 2018
array.js initial commit Sep 24, 2013
object.js initial commit Sep 24, 2013
package.json 1.0.0 Mar 15, 2016
regexp.js updated regexp Sep 24, 2013

README.md

badwords

A highly consumable list of bad (profanity) English words based on the nice short and simple list found in Google's "what do you love" project made accessible by Jamie Wilkinson here

This data has been exposed as

  • an array
  • an object
  • a regular expression

depending on what is required for your purposes.

Install

npm install badwords

Usage

var badwordsArray = require('badwords/array');

var badwordsObject = require('badwords/object');

var badwordsRegExp = require('badwords/regexp');

Note

"Bad words" implementations are frequently prone to the Scunthorpe problem

These kind of lists can be used for flagging things, but being used as a basis for outright blocking can cause issues.

You can’t perform that action at this time.