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) // 148
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 fromItalian Profanity
from WikiPedia,Italian slang
Italian offensive terms
Italian dialectal terms
Italian jocular terms
(all from Wiktionary)parole oscene
from Treccaniswear-words
from @chucknorris-iopt-br.json
— ± 148 Brazilian Portuguese profane words fromaprenderpalavras.com
- buzzwords — List of buzzwords
- dale-chall — List of familiar American-English words (1995)
- fillers — List of filler words
- hedges — List of hedge words
- profanities — List of the same profane words, but without the sureness
- spache — 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.