Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

mrpapercut/profanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

profanity

Randomly replaces text with profanity.

Written by Mr. Papercut (Mischa Rodermond) (website).

Install

Install with npm:

npm install profanity

Usage

    "use strict";

    var profanity = require('profanity');

    var str = "You are a very kind person and your mother looks lovely.";

    console.log(profanity.addProfanity(str));

Config

    {
        "enabled": boolean, // turns profanity on/off
        "level": int(1-10) // Profanity level. 1 is almost no profanity, 10 is full sergeant Hartman
    }

Wordlist

The wordlist can be found and edited in ./lib/wordlist.json

About

Randomly replaces text with profanity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published