Skip to content

A highly consumable list of bad (profanity) english words

License

Notifications You must be signed in to change notification settings

soluvas/badwords-list

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badwords-list v1.0.0

A highly consumable list of bad (profanity) words in several languages based on:

Inspired by badwords

This data has been exposed as an object that contains:

  • array (all languages): an array of plain words
  • object (en only): an object
  • regexp (en only): a regular expression
  • patterns (id only): an array of wildcard patterns

depending on what is required for your purposes.

Install

npm install badwords-list

Usage

// English
var list_en = require('badwords-list'),
	array_en = list_en.array,
	object_en = list_en.object,
	regex_en = list_en.regex;
// Indonesian
var list_id = require('badwords-list/id'),
	array_id = list_id.array,
	patterns_id = list_id.patterns;
// Russian
var list_ru = require('badwords-list/ru'),
	array_ru = list_ru.array;

Testing

Requires

  • Mocha
  • better-assert
npm test

or

REPORTER=spec make

or

mocha

About

A highly consumable list of bad (profanity) english words

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Makefile 0.1%