A highly consumable list of bad (profanity) words in several languages based on:
- English: the nice short and simple list found in Google's "what do you love" project made accessable by Jamie Wilkinson here
- Indonesian: kaskus and lamhotsimamora's and Hendy Irawan's own knowledge. The source file is
lib/id/patterns.js
, rungenerate-id.js
to generatelib/id/array.js
file. - Russian: bigearsenal's pull request
Inspired by badwords
This data has been exposed as an object that contains:
array
(all languages): an array of plain wordsobject
(en
only): an objectregexp
(en
only): a regular expressionpatterns
(id
only): an array of wildcard patterns
depending on what is required for your purposes.
npm install badwords-list
// 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;
- Mocha
- better-assert
npm test
or
REPORTER=spec make
or
mocha