Giter Club home page Giter Club logo

cuss's Introduction

cuss

Build Downloads Size

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.

Install

npm:

npm install cuss

Use

var cuss = require('cuss')

console.log(Object.keys(cuss).length) // 1773

console.log(cuss.beaver) // 0
console.log(cuss.asshat) // 2

Usage of locale versions

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

API

cuss

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

Support

Related

  • 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

Contributing

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.

License

MIT © Titus Wormer

cuss's People

Contributors

agauepi avatar ahmedredaamin avatar cynferdd avatar gledsonafonso avatar greenkeeperio-bot avatar integralleft avatar kaiserburger avatar leodau avatar mrbenj avatar otacilion avatar richardlitt avatar tiny-crab avatar wooorm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.