Map of profanities to sureness rating. This rating does not represent how vulgar a term is, instead, how likely it is to be used as either profanity or clean text.
npm:
npm install cuss
var cuss = require('cuss')
console.log(Object.keys(cuss).length) // 1773
console.log(cuss.beaver) // 0
console.log(cuss.asshat) // 2
To use Portuguese (as used in Brazil), do:
var cuss = require('cuss/pt-br')
console.log(Object.keys(cuss).length) // 171
console.log(cuss.burro) // 1
console.log(cuss.bixa) // 2
cuss
is a dictionary of phrases to ratings (Object.<number>
), where each key
can be considered a profanity, and each rating is a number between 0
and 2
(both including), representing the certainty the key is used as a profanity
depending on context.
Rating | Use as a profanity | Use in clean text | Example |
---|---|---|---|
2 | likely | unlikely | asshat |
1 | maybe | maybe | addict |
0 | unlikely | likely | beaver |
index.json
— ± 1770 English profane words and phrases from Luis von Ahn’s Research Group (Carnegie Mellon), theList of ethnic slurs
from WikiPedia, and other many more since)ar-latn.json
— ± 250 Arabic (Latin-Script) profane words and phrases fromnaughty-words
andyouswear
es.json
— ± 650 Spanish profane words and phrases fromnaughty-words
,revistagq.com
,taringa.net
,mundoxat.om
fr.json
— ± 740 French profane words and phrases fromwiktionary.org
it.json
— ± 800 Italian profane words and phrases from Italian profanity (WikiPedia); Italian slang Italian offensive terms Italian dialectal terms Italian jocular terms (Wiktionary); Parole oscene (Treccani); andchucknorris-io/swear-words
pt-br.json
— ± 148 Brazilian Portuguese profane words fromaprenderpalavras.com
buzzwords
— List of buzzwordsdale-chall
— List of familiar American-English words (1995)fillers
— List of filler wordshedges
— List of hedge wordsprofanities
— List of the same profane words, but without the surenessspache
— List of simple American-English words (1974)weasels
— List of weasel words
Thanks, contributions are greatly appreciated! 👍
New terms can be added to the corresponding JSON file as listed in the support section.
To add a new language, create a new JSON file using a lower-cased and dash-cased preferred (according to the IANA registry) BCP 47 language tag.
After adding a word, run npm install
to install all required dependencies,
then npm test
to update: the project includes some scripts to make sure
everything is in order.
Finally, open a Pull Request.