diff --git a/README.md b/README.md index 2efdfed..d0223d2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A simple node utility that removes/replaces profane words in given text. Very ea The module uses the profane words curated and maintained by [Shutterstock Project](https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words). -*Default locale is en-base* +*Default locale is en* ## Supported replacement patterns @@ -15,7 +15,7 @@ The module uses the profane words curated and maintained by [Shutterstock Projec | --- | --- | --- | | word | BLEEP | Your ass becomes Your BLEEP | | character | * | Your ass becomes Your \*\*\* | -| grawlix | - | Your ass becomes You &!# | +| grawlix | - | Your ass becomes You &!# | *Default replacement pattern is 'star'* @@ -25,15 +25,15 @@ The module uses the profane words curated and maintained by [Shutterstock Projec ### cleanser.replace(inputString, replacementPattern, replacementWord) -Replaces the bad words in the given inputString with the replacement pattern and replacement word passed to the function. For more usage examples please see ```javascript example.js``` +Replaces the bad words in the given inputString with the replacement pattern and replacement word passed to the function. For more usage examples please see ```javascript example.js``` #### Default replacement ```javascript var cleanser = require('profanity-cleanser'); -// Sets to default locale of en-base -cleanser.setLocale(); +// Sets to default locale of en +cleanser.setLocale(); var inputString = "Your ass is shit" @@ -46,8 +46,8 @@ var output = cleanser.replace(inputString); ```javascript var cleanser = require('profanity-cleanser'); -// Sets to default locale of en-base -cleanser.setLocale(); +// Sets to default locale of en +cleanser.setLocale(); var inputString = "Your ass is shit" @@ -59,8 +59,8 @@ var output = cleanser.replace(inputString, 'word', 'FOOBAR'); ```javascript var cleanser = require('profanity-cleanser'); -// Sets to default locale of en-base -cleanser.setLocale(); +// Sets to default locale of en +cleanser.setLocale(); var inputString = "Your ass is shit" @@ -75,12 +75,12 @@ Validates and sets the locale for profanity check based on the array passed. Acc ```javascript var cleanser = require('profanity-cleanser'); -// Sets to default locale of en-base -cleanser.setLocale(); +// Sets to default locale of en +cleanser.setLocale(); // Sets the locale to hindi spanish and japanese. cleanser.setLocale(['hi', 'es', 'ja']); -``` +``` ### cleanser.getLocale() @@ -100,7 +100,7 @@ console.log(output.toString()) ### cleanser.addWords([string]) -This method allows you to add more words of your choice to the dictionary. +This method allows you to add more words of your choice to the dictionary. ```javascript var cleanser = require('profanity-cleanser'); @@ -117,7 +117,7 @@ var output = cleanser.replace(input) ### cleanser.removeWords(string) -This method allows you to remove word from the dictionary. +This method allows you to remove word from the dictionary. ```javascript var cleanser = require('profanity-cleanser'); @@ -151,5 +151,5 @@ var output = cleanser.getDictionary(); - Also used @jwils0n's [profanity-filter](https://github.com/jwils0n/profanity-filter) as reference for grawlix implementation. - Seed data for locale based bad words is obtained from [Shutterstock Project](https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words). - + diff --git a/filter.js b/filter.js index 4a351aa..5dc99e7 100644 --- a/filter.js +++ b/filter.js @@ -1,6 +1,6 @@ 'use strict'; -var _ = require('lodash'); +var _ = require('lodash'); var sanitizer = require('./lib/sanitizer.js'); var meta = require('./lib/metadata.js'); @@ -12,14 +12,14 @@ var grawlixChars = ['!','@','#','$','%','&','*']; var replacement = { 'character' : function(key, pat){ - var keyRepm = _.repeat(pat, key.length); + var keyRepm = _.repeat(pat, key.length); return keyRepm; }, 'word': function(key, pat){ return pat; }, - + 'grawlix' : function(key){ var keyReplacement = '', grawlixLen = grawlixChars.length, @@ -49,8 +49,7 @@ module.exports = { //Now start populating dictionary; before that clear out the dictionary locale.forEach(function(lang){ // First require the module - var mod = require('./seed/'+lang); - var arrayContents = mod(); + var arrayContents = require('naughty-words')[lang]; var otherDictionary = _.concat(dictionary, arrayContents); dictionary = _.uniq(otherDictionary); }); @@ -62,27 +61,27 @@ module.exports = { { throw "It appears that locale is not set. Perhaps you forgot to call setLocale ?"; } - return locale; + return locale; }, /* This method returns a list of available locales supported by the module */ showAvailableLocales: function(){ return meta.getSupportedLocales(); }, - - /* This method returns a lit of words currently added to the dictionary */ + + /* This method returns a lit of words currently added to the dictionary */ getDictionary: function(){ return dictionary; }, /* This method allows you to add more words to the current directory instance incase they are not supported by our seeds*/ addWords: function(inputWordArray){ - + var sanitizedInputWordArray = sanitizer.sanitizeInputWordArray(inputWordArray); var otherDictionary = _.concat(dictionary, sanitizedInputWordArray); dictionary = _.uniq(otherDictionary); }, - + /* This method removes words from the dictionary instance */ removeWords: function(inputWords){ if(dictionary.indexOf(inputWords) != -1) @@ -94,7 +93,7 @@ module.exports = { /* This method shows the supported replacement patterns */ showReplacementPatterns: function(){ - return validPatterns; + return validPatterns; }, /* This method replaces the bad words in the string with your replacement characeter */ @@ -107,7 +106,7 @@ module.exports = { { throw "Dictionary is not populated. Perhaps you forgot to call setLocale ?"; } - + // Validate the replacementPattern var input = {}; input.replacementPattern = replacementPattern; @@ -127,13 +126,13 @@ module.exports = { { keyReplacement = replacement[repPatt.pattern](key, repPatt.word); var regex = new RegExp('\\b'+ key + '\\b', 'g'); - origString = origString.replace(regex, keyReplacement); - lowerStr = origString.toLowerCase(); + origString = origString.replace(regex, keyReplacement); + lowerStr = origString.toLowerCase(); } - } - - return origString; + } + + return origString; }, - + }; diff --git a/lib/metadata.js b/lib/metadata.js index f561f11..e4553aa 100644 --- a/lib/metadata.js +++ b/lib/metadata.js @@ -4,12 +4,9 @@ var fs = require('fs'); module.exports={ getSupportedLocales: function(){ - - var fileNames = fs.readdirSync( __dirname + '/../seed'); - var validLocales = []; - fileNames.forEach(function(f){ - validLocales.push(f.replace(/\.[^/.]+$/, "")); - }); + + var locales = require('naughty-words'); + var validLocales = Object.keys(locales); return validLocales; }, -}; +}; diff --git a/lib/sanitizer.js b/lib/sanitizer.js index fd8e09f..4b4246d 100644 --- a/lib/sanitizer.js +++ b/lib/sanitizer.js @@ -4,24 +4,24 @@ var meta = require('./metadata.js'); module.exports= { sanitizeLocales: function(localeArray){ - + var validLocales = meta.getSupportedLocales(); var locale; if(typeof localeArray === 'string' || typeof localeArray === 'number') { throw "Input to locale should be an array. Eg. ['fr']"; - } + } if(localeArray === undefined) { - locale = ['en-base']; // default locale is always english-base - } + locale = ['en']; // default locale is always english-base + } else if(localeArray.length === 0) { - locale = ['en-base']; + locale = ['en']; } else { - locale = localeArray; + locale = localeArray; } // Check that these are valid locales @@ -37,7 +37,7 @@ module.exports= { }, sanitizeInputWordArray: function(inputWordArray){ - + if(inputWordArray === undefined || typeof inputWordArray === 'string' || typeof inputWordArray === 'number') { throw "Input word array should be of a type array. Eg. ['a', 'man']"; @@ -50,7 +50,7 @@ module.exports= { var replacementPattern = input.replacementPattern; var replacementWord = input.replacementWord; var validPatterns = input.validPatterns; - + var returnPat = {}; if(replacementPattern === undefined) { @@ -82,7 +82,7 @@ module.exports= { } } } - + returnPat.pattern = replacementPattern; returnPat.word = replacementWord; return returnPat ; diff --git a/package.json b/package.json index bf5dae3..73ee547 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "mocha": "^2.4.5" }, "dependencies": { - "lodash": "^4.6.1" + "lodash": "^4.6.1", + "naughty-words": "^1.0.2" }, "licenses": [ { diff --git a/seed/ar.js b/seed/ar.js deleted file mode 100644 index 953177b..0000000 --- a/seed/ar.js +++ /dev/null @@ -1,44 +0,0 @@ -/* returns array of Arabic bad words */ -module.exports=function(){ - - return [ -" سكس", -"طيز", -"شرج", -"لعق", -"لحس", -"مص", -"تمص", -"بيضان", -"ثدي", -"بز", -"بزاز", -"حلمة", -"مفلقسة", -"بظر", -"كس", -"فرج", -"شهوة", -"شاذ", -"مبادل", -"عاهرة", -"جماع", -"قضيب", -"زب", -"لوطي", -"لواط", -"سحاق", -"سحاقية", -"اغتصاب", -"خنثي", -"احتلام", -"نيك", -"متناك", -"متناكة", -"شرموطة", -"عرص", -"خول", -"قحبة", -"لبوة ", - ]; -}; diff --git a/seed/cs.js b/seed/cs.js deleted file mode 100644 index 353244f..0000000 --- a/seed/cs.js +++ /dev/null @@ -1,47 +0,0 @@ -/* returns array of Czech bad words */ -module.exports=function(){ - - return [ - "bordel", - "buzna", - "čumět", - "čurák", - "debil", - "do piče", - "do prdele", - "dršťka", - "držka", - "flundra", - "hajzl", - "hovno", - "chcanky", - "chuj", - "jebat", - "kokot", - "kokotina", - "koňomrd", - "kunda", - "kurva", - "mamrd", - "mrdat", - "mrdka", - "mrdník", - "oslošoust", - "piča", - "píčus", - "píchat", - "pizda", - "prcat", - "prdel", - "prdelka", - "sračka", - "srát", - "šoustat", - "šulin", - "vypíčenec", - "zkurvit", - "zkurvysyn", - "zmrd", - "žrát", - ]; -}; diff --git a/seed/da.js b/seed/da.js deleted file mode 100644 index 7762ada..0000000 --- a/seed/da.js +++ /dev/null @@ -1,26 +0,0 @@ -/* returns array of Danish bad words */ -module.exports=function(){ - - return [ - "anus", - "bøsserøv", - "cock", - "fisse", - "fissehår", - "fuck", - "hestepik", - "kussekryller", - "lort", - "luder", - "pik", - "pikhår", - "pikslugeri", - "piksutteri", - "pis", - "røv", - "røvhul", - "røvskæg", - "røvspræke", - "shit", - ]; -}; diff --git a/seed/de.js b/seed/de.js deleted file mode 100644 index b4bcd05..0000000 --- a/seed/de.js +++ /dev/null @@ -1,68 +0,0 @@ -/* returns array of German bad words */ -module.exports=function(){ - - return [ - "analritter", - "arsch", - "arschficker", - "arschlecker", - "arschloch", - "bimbo", - "bratze", - "bumsen", - "bonze", - "dödel", - "fick", - "ficken", - "flittchen", - "fratze", - "hackfresse", - "hure", - "hurensohn", - "ische", - "kackbratze", - "kacke", - "kacken", - "kackwurst", - "kampflesbe", - "kanake", - "kimme", - "lümmel", - "MILF", - "möpse", - "morgenlatte", - "möse", - "mufti", - "muschi", - "nackt", - "neger", - "nigger", - "nippel", - "nutte", - "onanieren", - "orgasmus", - "pimmel", - "pimpern", - "pinkeln", - "pissen", - "pisser", - "popel", - "poppen", - "porno", - "reudig", - "rosette", - "schabracke", - "scheiße", - "schlampe", - "schnackeln", - "schwanzlutscher", - "schwuchtel", - "tittchen", - "titten", - "vögeln", - "vollpfosten", - "wichse", - "wichsen", - "wichser", - ]; -}; diff --git a/seed/en-base.js b/seed/en-base.js deleted file mode 100644 index 1ef827e..0000000 --- a/seed/en-base.js +++ /dev/null @@ -1,379 +0,0 @@ -/* returns array of en-base bad words */ -module.exports=function(){ - - return [ - "2g1c", - "2 girls 1 cup", - "acrotomophilia", - "alabama hot pocket", - "alaskan pipeline", - "anal", - "anilingus", - "anus", - "apeshit", - "arsehole", - "ass", - "asshole", - "assmunch", - "auto erotic", - "autoerotic", - "babeland", - "baby batter", - "baby juice", - "ball gag", - "ball gravy", - "ball kicking", - "ball licking", - "ball sack", - "ball sucking", - "bangbros", - "bareback", - "barely legal", - "barenaked", - "bastard", - "bastinado", - "bbw", - "bdsm", - "beaner", - "beaners", - "beaver cleaver", - "beaver lips", - "bestiality", - "big black", - "big breasts", - "big knockers", - "big tits", - "bimbos", - "birdlock", - "bitch", - "bitches", - "black cock", - "blonde action", - "blonde on blonde action", - "blowjob", - "blow job", - "blow your load", - "blue waffle", - "blumpkin", - "bollocks", - "bondage", - "boner", - "boob", - "boobs", - "booty call", - "brown showers", - "brunette action", - "bukkake", - "bulldyke", - "bullet vibe", - "bullshit", - "bung hole", - "bunghole", - "busty", - "butt", - "buttcheeks", - "butthole", - "camel toe", - "camgirl", - "camslut", - "camwhore", - "carpet muncher", - "carpetmuncher", - "chocolate rosebuds", - "circlejerk", - "cleveland steamer", - "clit", - "clitoris", - "clover clamps", - "clusterfuck", - "cock", - "cocks", - "coprolagnia", - "coprophilia", - "cornhole", - "coon", - "coons", - "creampie", - "cum", - "cumming", - "cunnilingus", - "cunt", - "darkie", - "date rape", - "daterape", - "deep throat", - "deepthroat", - "dendrophilia", - "dick", - "dildo", - "dirty pillows", - "dirty sanchez", - "doggie style", - "doggiestyle", - "doggy style", - "doggystyle", - "dog style", - "dolcett", - "domination", - "dominatrix", - "dommes", - "donkey punch", - "double dong", - "double penetration", - "dp action", - "dry hump", - "dvda", - "eat my ass", - "ecchi", - "ejaculation", - "erotic", - "erotism", - "escort", - "ethical slut", - "eunuch", - "faggot", - "fecal", - "felch", - "fellatio", - "feltch", - "female squirting", - "femdom", - "figging", - "fingerbang", - "fingering", - "fisting", - "foot fetish", - "footjob", - "frotting", - "fuck", - "fuck buttons", - "fuckin", - "fucking", - "fucktards", - "fudge packer", - "fudgepacker", - "futanari", - "gang bang", - "gay sex", - "genitals", - "giant cock", - "girl on", - "girl on top", - "girls gone wild", - "goatcx", - "goatse", - "god damn", - "gokkun", - "golden shower", - "goodpoop", - "goo girl", - "goregasm", - "grope", - "group sex", - "g-spot", - "guro", - "hand job", - "handjob", - "hard core", - "hardcore", - "hentai", - "homoerotic", - "honkey", - "hooker", - "hot carl", - "hot chick", - "how to kill", - "how to murder", - "huge fat", - "humping", - "incest", - "intercourse", - "jack off", - "jail bait", - "jailbait", - "jelly donut", - "jerk off", - "jigaboo", - "jiggaboo", - "jiggerboo", - "jizz", - "juggs", - "kike", - "kinbaku", - "kinkster", - "kinky", - "knobbing", - "leather restraint", - "leather straight jacket", - "lemon party", - "lolita", - "lovemaking", - "make me come", - "male squirting", - "masturbate", - "menage a trois", - "milf", - "missionary position", - "motherfucker", - "mound of venus", - "mr hands", - "muff diver", - "muffdiving", - "nambla", - "nawashi", - "negro", - "neonazi", - "nigga", - "nigger", - "nig nog", - "nimphomania", - "nipple", - "nipples", - "nsfw images", - "nude", - "nudity", - "nympho", - "nymphomania", - "octopussy", - "omorashi", - "one cup two girls", - "one guy one jar", - "orgasm", - "orgy", - "paedophile", - "paki", - "panties", - "panty", - "pedobear", - "pedophile", - "pegging", - "penis", - "phone sex", - "piece of shit", - "pissing", - "piss pig", - "pisspig", - "playboy", - "pleasure chest", - "pole smoker", - "ponyplay", - "poof", - "poon", - "poontang", - "punany", - "poop chute", - "poopchute", - "porn", - "porno", - "pornography", - "prince albert piercing", - "pthc", - "pubes", - "pussy", - "queaf", - "queef", - "quim", - "raghead", - "raging boner", - "rape", - "raping", - "rapist", - "rectum", - "reverse cowgirl", - "rimjob", - "rimming", - "rosy palm", - "rosy palm and her 5 sisters", - "rusty trombone", - "sadism", - "santorum", - "scat", - "schlong", - "scissoring", - "semen", - "sex", - "sexo", - "sexy", - "shaved beaver", - "shaved pussy", - "shemale", - "shibari", - "shit", - "shitty", - "shota", - "shrimping", - "skeet", - "slanteye", - "slut", - "s&m", - "smut", - "snatch", - "snowballing", - "sodomize", - "sodomy", - "spic", - "splooge", - "splooge moose", - "spooge", - "spread legs", - "spunk", - "strap on", - "strapon", - "strappado", - "strip club", - "style doggy", - "suck", - "sucks", - "suicide girls", - "sultry women", - "swastika", - "swinger", - "tainted love", - "taste my", - "tea bagging", - "threesome", - "throating", - "tied up", - "tight white", - "tit", - "tits", - "titties", - "titty", - "tongue in a", - "topless", - "tosser", - "towelhead", - "tranny", - "tribadism", - "tub girl", - "tubgirl", - "tushy", - "twat", - "twink", - "twinkie", - "two girls one cup", - "undressing", - "upskirt", - "urethra play", - "urophilia", - "vagina", - "venus mound", - "vibrator", - "violet wand", - "vorarephilia", - "voyeur", - "vulva", - "wank", - "wetback", - "wet dream", - "white power", - "wrapping men", - "wrinkled starfish", - "xx", - "xxx", - "yaoi", - "yellow showers", - "yiffy", - "zoophilia", - ]; -}; diff --git a/seed/en-uk.js b/seed/en-uk.js deleted file mode 100644 index 76b00ae..0000000 --- a/seed/en-uk.js +++ /dev/null @@ -1,130 +0,0 @@ -/* returns array of en-base bad words */ -module.exports=function(){ - - return [ - 'analplug', - 'analsex', - 'arse', - 'assassin', - 'balls', - 'bimbo', - 'bloody', - 'bloodyhell', - 'blowjob', - 'bollocks', - 'boner', - 'boobies', - 'boobs', - 'bugger', - 'bukkake', - 'bullshit', - 'chink', - 'clit', - 'clitoris', - 'cocksucker', - 'condom', - 'coon', - 'crap', - 'cumshot', - 'damm', - 'dammit', - 'damn', - 'dickhead', - 'doggystyle', - 'f0ck', - 'fags', - 'fanny', - 'fck', - 'fcker', - 'fckr', - 'fcku', - 'fcuk', - 'fucker', - 'fuckface', - 'fuckr', - 'fuct', - 'genital', - 'genitalia', - 'genitals', - 'glory hole', - 'gloryhole', - 'gobshite', - 'godammet', - 'godammit', - 'goddammet', - 'goddammit', - 'goddamn', - 'gypo', - 'hitler', - 'hooker', - 'horny', - 'jesussucks', - 'jizzum', - 'kaffir', - 'kill', - 'killer', - 'killin', - 'killing', - 'lesbo', - 'masturbate', - 'milf', - 'molest', - 'moron', - 'motherfuck', - 'mthrfckr', - 'murder', - 'murderer', - 'nazi', - 'negro', - 'nigga', - 'niggah', - 'nonce', - 'paedo', - 'paedophile', - 'paki', - 'pecker', - 'pedo', - 'pedofile', - 'pedophile', - 'phuk', - 'pig', - 'pimp', - 'poof', - 'porn', - 'prick', - 'pron', - 'prostitute', - 'raped', - 'rapes', - 'rapist', - 'schlong', - 'screw', - 'scrotum', - 'shag', - 'shemale', - 'shite', - 'shiz', - 'slag', - 'spastic', - 'spaz', - 'sperm', - 'spunk', - 'stripper', - 'tart', - 'terrorist', - 'tits', - 'tittyfuck', - 'tosser', - 'turd', - 'vaginal', - 'vibrator', - 'wanker', - 'weed', - 'wetback', - 'whor', - 'whore', - 'wog', - 'wtf', - 'xxx' - ]; -}; diff --git a/seed/en-us.js b/seed/en-us.js deleted file mode 100644 index 47a41ae..0000000 --- a/seed/en-us.js +++ /dev/null @@ -1,44 +0,0 @@ -/* returns array of en-base bad words */ -module.exports=function(){ - - return [ - 'abortion', - 'anus', - 'beastiality', - 'bestiality', - 'bewb', - 'blow', - 'blumpkin', - 'cawk', - 'choad', - 'cooter', - 'cornhole', - 'dong', - 'douche', - 'fart', - 'foreskin', - 'gangbang', - 'gook', - 'hell', - 'honkey', - 'humping', - 'jiz', - 'labia', - 'nutsack', - 'pen1s', - 'poon', - 'punani', - 'queef', - 'quim', - 'rectal', - 'rectum', - 'rimjob', - 'spick', - 'spoo', - 'spooge', - 'taint', - 'titty', - 'vag', - 'whore' - ]; -}; diff --git a/seed/eo.js b/seed/eo.js deleted file mode 100644 index f8b167b..0000000 --- a/seed/eo.js +++ /dev/null @@ -1,43 +0,0 @@ -/* returns array of Esperanto bad words */ -module.exports=function(){ - - return [ - "bugren", - "bugri", - "bugru", - "ĉiesulino", - "ĉiesulo", - "diofek", - "diofeka", - "fek", - "feken", - "fekfikanto", - "feklekulo", - "fekulo", - "fik", - "fikado", - "fikema", - "fikfek", - "fiki", - "fikiĝi", - "fikiĝu", - "fikilo", - "fikklaŭno", - "fikota", - "fiku", - "forfiki", - "forfikiĝu", - "forfiku", - "forfurzu", - "forpisi", - "forpisu", - "furzulo", - "kacen", - "kaco", - "kacsuĉulo", - "kojono", - "piĉen", - "piĉo", - "zamenfek", - ]; -}; diff --git a/seed/es.js b/seed/es.js deleted file mode 100644 index 880b60d..0000000 --- a/seed/es.js +++ /dev/null @@ -1,62 +0,0 @@ -/* returns array of Spanish bad words */ -module.exports=function(){ - - return [ - 'bollera', // Lesbian - 'cabron', // Dickhead - 'cabrón', // Dickhead - 'cabrona', // Dickhead (feminine) - 'cabronazo', // Bastard - 'capulla', // Asshole (feminine) - 'capullo', // Asshole - 'chichi', // Pussy - 'chocho', // Pussy - 'cojon', // Testicle (slang) - 'cojón', // Testicle (slang) - 'cojones', // Testicles (slang) - 'comepollas', // Cocksucker - 'cono', // Cunt - 'coño', // Cunt - 'culo', // Ass - 'follar', // Fuck - 'follen', // Go fuck - 'furcia', // Whore - 'gilipollas', // Jerk - 'hijaputa', // Son of a bitch (feminine) - 'hijo puta', // Son of a bitch - 'hijoputa', // Son of a bitch - 'hostia', // Bastard, shit, to hit - 'joder', // Fuck - 'jodete', // Go fuck yourself - 'jódete', // Go fuck yourself - 'joputa', // Abbreviation of "hijo de puta" (son of a bitch) - 'mamada', // Blowjob - 'mamon', // Sucker - 'mamón', // Sucker - 'mamona', // Sucker (feminine) - 'marica', // Faggy - 'maricon', // Faggot - 'maricón', // Faggot - 'maricona', // Drag queen, lesbian - 'mariconazo', // Faggot - 'nazi', // Nazi - 'ojete', // Anus (slang) - 'ostia', // Abbreviation of "hostia" (bastard, shit, to hit) - 'pajillero', // Wanker - 'pendon', // Slob - 'pendón', // Slob - 'picha', // Dick - 'polla', // Dick - 'pollon', // Dick - 'pollón', // Dick - 'polvo', // To ejaculate - 'potorro', // Vagina - 'puta', // Bitch/whore - 'puto', // Bitch/whore (masculine), faggot - 'puton', // Bitch/whore - 'putón', // Bitch/whore - 'tortillera', // Lesbian - 'zorron', // To be/act slutty - 'zorrón' // To be/act slutty - ]; -}; diff --git a/seed/fa.js b/seed/fa.js deleted file mode 100644 index bf5e432..0000000 --- a/seed/fa.js +++ /dev/null @@ -1,51 +0,0 @@ -/* returns array of Persian bad words */ -module.exports=function(){ - - return [ -"آب کیر", -"ارگاسم", -"برهنه", -"پورن", -"پورنو", -"تجاوز", -"تخمی", -"جق", -"جقی", -"جلق", -"جنده", -"چوچول", -"حشر", -"حشری", -"داف", -"دودول", -"ساک زدن", -"سکس", -"سکس کردن", -"سکسی", -"سوپر", -"شق کردن", -"شهوت", -"شهوتی", -"شونبول", -"فیلم سوپر", -"کس", -"کس دادن", -"کس کردن", -"کسکش", -"کوس", -"کون", -"کون دادن", -"کون کردن", -"کونکش", -"کونی", -"کیر", -"کیری", -"لاپا", -"لاپایی", -"لاشی", -"لخت", -"لش", -"منی", -"هرزه ", -]; -}; diff --git a/seed/fi.js b/seed/fi.js deleted file mode 100644 index c9b6607..0000000 --- a/seed/fi.js +++ /dev/null @@ -1,421 +0,0 @@ -/* returns array of Finnish bad words */ -module.exports=function(){ - - return [ - 'jumalauta', // goddamnit, interjection - 'helvetit', // hell, pl. nominative - 'helvetiltä', // hell, sg. ablative - 'helvetillä', // hell, sg. adessive - 'helvetille', // hell, sg. allative - 'helvetistä', // hell, sg. elative - 'helvetin', // hell, sg. genitive - 'helvettiin', // hell, sg. illative - 'helvetissä', // hell, sg. inessive - 'helvetti', // hell, sg. nominative - 'helvettiä', // hell, sg. partitive - 'helveteiltä', // hell, pl. ablative - 'helveteillä', // hell, pl. adessive - 'helveteille', // hell, pl. allative - 'helveteistä', // hell, pl. elative - 'helvettien', // hell, pl. genitive - 'helvetteihin', // hell, pl. illative - 'helveteissä', // hell, pl. inessive - 'helvetit', // hell, pl. nominative - 'helvettejä', // hell, pl. partitive - 'hinttarit', // faggot, pl. nominative - 'hinttarilta', // faggot, sg. ablative - 'hinttarilla', // faggot, sg. adessive - 'hinttarille', // faggot, sg. allative - 'hinttarista', // faggot, sg. elative - 'hinttarin', // faggot, sg. genitive - 'hinttariin', // faggot, sg. illative - 'hinttarissa', // faggot, sg. inessive - 'hinttari', // faggot, sg. nominative - 'hinttaria', // faggot, sg. partitive - 'hinttareilta', // faggot, pl. ablative - 'hinttareilla', // faggot, pl. adessive - 'hinttareille', // faggot, pl. allative - 'hinttareista', // faggot, pl. elative - 'hinttarien', // faggot, pl. genitive - 'hinttareiden', // faggot, pl. genitive - 'hinttareitten', // faggot, pl. genitive - 'hinttareihin', // faggot, pl. illative - 'hinttareissa', // faggot, pl. inessive - 'hinttarit', // faggot, pl. nominative - 'hinttareita', // faggot, pl. partitive - 'hinttareja', // faggot, pl. partitive - 'hintit', // fag, pl. nominative - 'hintiltä', // fag, sg. ablative - 'hintillä', // fag, sg. adessive - 'hintille', // fag, sg. allative - 'hintistä', // fag, sg. elative - 'hintin', // fag, sg. genitive - 'hinttiin', // fag, sg. illative - 'hintissä', // fag, sg. inessive - 'hintti', // fag, sg. nominative - 'hinttiä', // fag, sg. partitive - 'hinteiltä', // fag, pl. ablative - 'hinteillä', // fag, pl. adessive - 'hinteille', // fag, pl. allative - 'hinteistä', // fag, pl. elative - 'hinttien', // fag, pl. genitive - 'hintteihin', // fag, pl. illative - 'hinteissä', // fag, pl. inessive - 'hintit', // fag, pl. nominative - 'hinttejä', // fag, pl. partitive - 'huorat', // whore, pl. nominative - 'huoralta', // whore, sg. ablative - 'huoralla', // whore, sg. adessive - 'huoralle', // whore, sg. allative - 'huorasta', // whore, sg. elative - 'huoran', // whore, sg. genitive - 'huoraan', // whore, sg. illative - 'huorassa', // whore, sg. inessive - 'huora', // whore, sg. nominative - 'huoraa', // whore, sg. partitive - 'huorilta', // whore, pl. ablative - 'huorilla', // whore, pl. adessive - 'huorille', // whore, pl. allative - 'huorista', // whore, pl. elative - 'huorien', // whore, pl. genitive - 'huoriin', // whore, pl. illative - 'huorissa', // whore, pl. inessive - 'huorat', // whore, pl. nominative - 'huoria', // whore, pl. partitive - 'kusipäät', // pisshead, pl. nominative - 'kusipäältä', // pisshead, sg. ablative - 'kusipäällä', // pisshead, sg. adessive - 'kusipäälle', // pisshead, sg. allative - 'kusipäästä', // pisshead, sg. elative - 'kusipään', // pisshead, sg. genitive - 'kusipäähän', // pisshead, sg. illative - 'kusipäässä', // pisshead, sg. inessive - 'kusipää', // pisshead, sg. nominative - 'kusipäätä', // pisshead, sg. partitive - 'kusipäiltä', // pisshead, pl. ablative - 'kusipäillä', // pisshead, pl. adessive - 'kusipäille', // pisshead, pl. allative - 'kusipäistä', // pisshead, pl. elative - 'kusipäitten', // pisshead, pl. genitive - 'kusipäihin', // pisshead, pl. illative - 'kusipäissä', // pisshead, pl. inessive - 'kusipäät', // pisshead, pl. nominative - 'kusipäitä', // pisshead, pl. partitive - 'kyrvät', // cock, pl. nominative - 'kyrvältä', // cock, sg. ablative - 'kyrvällä', // cock, sg. adessive - 'kyrvälle', // cock, sg. allative - 'kyrvästä', // cock, sg. elative - 'kyrvän', // cock, sg. genitive - 'kyrpään', // cock, sg. illative - 'kyrvässä', // cock, sg. inessive - 'kyrpä', // cock, sg. nominative - 'kyrpää', // cock, sg. partitive - 'kyrviltä', // cock, pl. ablative - 'kyrvillä', // cock, pl. adessive - 'kyrville', // cock, pl. allative - 'kyrvistä', // cock, pl. elative - 'kyrpien', // cock, pl. genitive - 'kyrpiin', // cock, pl. illative - 'kyrvissä', // cock, pl. inessive - 'kyrvät', // cock, pl. nominative - 'kyrpiä', // cock, pl. partitive - 'mulkut', // dick, pl. nominative - 'mulkulta', // dick, sg. ablative - 'mulkulla', // dick, sg. adessive - 'mulkulle', // dick, sg. allative - 'mulkusta', // dick, sg. elative - 'mulkun', // dick, sg. genitive - 'mulkkuun', // dick, sg. illative - 'mulkussa', // dick, sg. inessive - 'mulkku', // dick, sg. nominative - 'mulkkua', // dick, sg. partitive - 'mulkuilta', // dick, pl. ablative - 'mulkuilla', // dick, pl. adessive - 'mulkuille', // dick, pl. allative - 'mulkuista', // dick, pl. elative - 'mulkkujen', // dick, pl. genitive - 'mulkkuihin', // dick, pl. illative - 'mulkuissa', // dick, pl. inessive - 'mulkut', // dick, pl. nominative - 'mulkkuja', // dick, pl. partitive - 'nartut', // bitch, pl. nominative - 'nartulta', // bitch, sg. ablative - 'nartulla', // bitch, sg. adessive - 'nartulle', // bitch, sg. allative - 'nartusta', // bitch, sg. elative - 'nartun', // bitch, sg. genitive - 'narttuun', // bitch, sg. illative - 'nartussa', // bitch, sg. inessive - 'narttu', // bitch, sg. nominative - 'narttua', // bitch, sg. partitive - 'nartuilta', // bitch, pl. ablative - 'nartuilla', // bitch, pl. adessive - 'nartuille', // bitch, pl. allative - 'nartuista', // bitch, pl. elative - 'narttujen', // bitch, pl. genitive - 'narttuihin', // bitch, pl. illative - 'nartuissa', // bitch, pl. inessive - 'nartut', // bitch, pl. nominative - 'narttuja', // bitch, pl. partitive - 'neekerit', // nigger, pl. nominative - 'neekeriltä', // nigger, sg. ablative - 'neekerillä', // nigger, sg. adessive - 'neekerille', // nigger, sg. allative - 'neekeristä', // nigger, sg. elative - 'neekerin', // nigger, sg. genitive - 'neekeriin', // nigger, sg. illative - 'neekerissä', // nigger, sg. inessive - 'neekeri', // nigger, sg. nominative - 'neekeriä', // nigger, sg. partitive - 'neekereiltä', // nigger, pl. ablative - 'neekereillä', // nigger, pl. adessive - 'neekereille', // nigger, pl. allative - 'neekereistä', // nigger, pl. elative - 'neekerien', // nigger, pl. genitive - 'neekereitten', // nigger, pl. genitive - 'neekereiden', // nigger, pl. genitive - 'neekereihin', // nigger, pl. illative - 'neekereissä', // nigger, pl. inessive - 'neekerit', // nigger, pl. nominative - 'neekereitä', // nigger, pl. partitive - 'neekerejä', // nigger, pl. partitive - 'paskat', // shit, pl. nominative - 'paskalta', // shit, sg. ablative - 'paskalla', // shit, sg. adessive - 'paskalle', // shit, sg. allative - 'paskasta', // shit, sg. elative - 'paskan', // shit, sg. genitive - 'paskaan', // shit, sg. illative - 'paskassa', // shit, sg. inessive - 'paska', // shit, sg. nominative - 'paskaa', // shit, sg. partitive - 'paskoilta', // shit, pl. ablative - 'paskoilla', // shit, pl. adessive - 'paskoille', // shit, pl. allative - 'paskoista', // shit, pl. elative - 'paskojen', // shit, pl. genitive - 'paskoihin', // shit, pl. illative - 'paskoissa', // shit, pl. inessive - 'paskat', // shit, pl. nominative - 'paskoja', // shit, pl. partitive - 'perhanat', // deuce, pl. nominative - 'perhanalta', // deuce, sg. ablative - 'perhanalla', // deuce, sg. adessive - 'perhanalle', // deuce, sg. allative - 'perhanasta', // deuce, sg. elative - 'perhanan', // deuce, sg. genitive - 'perhanaan', // deuce, sg. illative - 'perhanassa', // deuce, sg. inessive - 'perhana', // deuce, sg. nominative - 'perhanaa', // deuce, sg. partitive - 'perhanoilta', // deuce, pl. ablative - 'perhanoilla', // deuce, pl. adessive - 'perhanoille', // deuce, pl. allative - 'perhanoista', // deuce, pl. elative - 'perhanoiden', // deuce, pl. genitive - 'perhanoitten', // deuce, pl. genitive - 'perhanoihin', // deuce, pl. illative - 'perhanoissa', // deuce, pl. inessive - 'perhanat', // deuce, pl. nominative - 'perhanoita', // deuce, pl. partitive - 'perkeleet', // devil, pl. nominative - 'perkeleeltä', // devil, sg. ablative - 'perkeleellä', // devil, sg. adessive - 'perkeleelle', // devil, sg. allative - 'perkeleestä', // devil, sg. elative - 'perkeleen', // devil, sg. genitive - 'perkeleeseen', // devil, sg. illative - 'perkeleessä', // devil, sg. inessive - 'perkele', // devil, sg. nominative - 'perkelettä', // devil, sg. partitive - 'perkeleiltä', // devil, pl. ablative - 'perkeleillä', // devil, pl. adessive - 'perkeleille', // devil, pl. allative - 'perkeleistä', // devil, pl. elative - 'perkeleitten', // devil, pl. genitive - 'perkeleiden', // devil, pl. genitive - 'perkeleihin', // devil, pl. illative - 'perkeleisiin', // devil, pl. illative - 'perkeleissä', // devil, pl. inessive - 'perkeleet', // devil, pl. nominative - 'perkeleitä', // devil, pl. partitive - 'perseet', // ass, pl. nominative - 'perseeltä', // ass, sg. ablative - 'perseellä', // ass, sg. adessive - 'perseelle', // ass, sg. allative - 'perseestä', // ass, sg. elative - 'perseen', // ass, sg. genitive - 'perseeseen', // ass, sg. illative - 'perseessä', // ass, sg. inessive - 'perse', // ass, sg. nominative - 'persettä', // ass, sg. partitive - 'perseiltä', // ass, pl. ablative - 'perseillä', // ass, pl. adessive - 'perseille', // ass, pl. allative - 'perseistä', // ass, pl. elative - 'perseitten', // ass, pl. genitive - 'perseiden', // ass, pl. genitive - 'perseihin', // ass, pl. illative - 'perseisiin', // ass, pl. illative - 'perseissä', // ass, pl. inessive - 'perseet', // ass, pl. nominative - 'perseitä', // ass, pl. partitive - 'pillut', // pussy, pl. nominative - 'pillulta', // pussy, sg. ablative - 'pillulla', // pussy, sg. adessive - 'pillulle', // pussy, sg. allative - 'pillusta', // pussy, sg. elative - 'pillun', // pussy, sg. genitive - 'pilluun', // pussy, sg. illative - 'pillussa', // pussy, sg. inessive - 'pillu', // pussy, sg. nominative - 'pillua', // pussy, sg. partitive - 'pilluilta', // pussy, pl. ablative - 'pilluilla', // pussy, pl. adessive - 'pilluille', // pussy, pl. allative - 'pilluista', // pussy, pl. elative - 'pillujen', // pussy, pl. genitive - 'pilluihin', // pussy, pl. illative - 'pilluissa', // pussy, pl. inessive - 'pillut', // pussy, pl. nominative - 'pilluja', // pussy, pl. partitive - 'saamarit', // bloody, pl. nominative - 'saamarilta', // bloody, sg. ablative - 'saamarilla', // bloody, sg. adessive - 'saamarille', // bloody, sg. allative - 'saamarista', // bloody, sg. elative - 'saamarin', // bloody, sg. genitive - 'saamariin', // bloody, sg. illative - 'saamarissa', // bloody, sg. inessive - 'saamari', // bloody, sg. nominative - 'saamaria', // bloody, sg. partitive - 'saamareilta', // bloody, pl. ablative - 'saamareilla', // bloody, pl. adessive - 'saamareille', // bloody, pl. allative - 'saamareista', // bloody, pl. elative - 'saamarien', // bloody, pl. genitive - 'saamareiden', // bloody, pl. genitive - 'saamareitten', // bloody, pl. genitive - 'saamareihin', // bloody, pl. illative - 'saamareissa', // bloody, pl. inessive - 'saamarit', // bloody, pl. nominative - 'saamareita', // bloody, pl. partitive - 'saamareja', // bloody, pl. partitive - 'saatanat', // satan, pl. nominative - 'saatanalta', // satan, sg. ablative - 'saatanalla', // satan, sg. adessive - 'saatanalle', // satan, sg. allative - 'saatanasta', // satan, sg. elative - 'saatanan', // satan, sg. genitive - 'saatanaan', // satan, sg. illative - 'saatanassa', // satan, sg. inessive - 'saatana', // satan, sg. nominative - 'saatanaa', // satan, sg. partitive - 'saatanoilta', // satan, pl. ablative - 'saatanoilla', // satan, pl. adessive - 'saatanoille', // satan, pl. allative - 'saatanoista', // satan, pl. elative - 'saatanoiden', // satan, pl. genitive - 'saatanoitten', // satan, pl. genitive - 'saatanoihin', // satan, pl. illative - 'saatanoissa', // satan, pl. inessive - 'saatanat', // satan, pl. nominative - 'saatanoita', // satan, pl. partitive - 'vittu', // cunt, interjection, sg. nominative - 'vitut', // cunt, pl. nominative - 'vitulta', // cunt, sg. ablative - 'vitulla', // cunt, sg. adessive - 'vitulle', // cunt, sg. allative - 'vitusta', // cunt, sg. elative - 'vitun', // cunt, sg. genitive - 'vittuun', // cunt, sg. illative - 'vitussa', // cunt, sg. inessive - 'vittua', // cunt, sg. partitive - 'vituilta', // cunt, pl. ablative - 'vituilla', // cunt, pl. adessive - 'vituille', // cunt, pl. allative - 'vituista', // cunt, pl. elative - 'vittujen', // cunt, pl. genitive - 'vittuihin', // cunt, pl. illative - 'vituissa', // cunt, pl. inessive - 'vitut', // cunt, pl. nominative - 'vittuja', // cunt, pl. partitive - 'ämmät', // hag, bitch; pl. nominative - 'ämmältä', // hag, bitch; sg. ablative - 'ämmällä', // hag, bitch; sg. adessive - 'ämmälle', // hag, bitch; sg. allative - 'ämmästä', // hag, bitch; sg. elative - 'ämmän', // hag, bitch; sg. genitive - 'ämmään', // hag, bitch; sg. illative - 'ämmässä', // hag, bitch; sg. inessive - 'ämmä', // hag, bitch; sg. nominative - 'ämmää', // hag, bitch; sg. partitive - 'ämmiltä', // hag, bitch; pl. ablative - 'ämmillä', // hag, bitch; pl. adessive - 'ämmille', // hag, bitch; pl. allative - 'ämmistä', // hag, bitch; pl. elative - 'ämmien', // hag, bitch; pl. genitive - 'ämmiin', // hag, bitch; pl. illative - 'ämmissä', // hag, bitch; pl. inessive - 'ämmät', // hag, bitch; pl. nominative - 'ämmiä', // hag, bitch; pl. partitive - 'fittu', // cunt (f- version); interjection, sg. nominative - 'fitut', // cunt (f- version); pl. nominative - 'fitulta', // cunt (f- version); sg. ablative - 'fitulla', // cunt (f- version); sg. adessive - 'fitulle', // cunt (f- version); sg. allative - 'fitusta', // cunt (f- version); sg. elative - 'fitun', // cunt (f- version); sg. genitive - 'fittuun', // cunt (f- version); sg. illative - 'fitussa', // cunt (f- version); sg. inessive - 'fittua', // cunt (f- version); sg. partitive - 'fituilta', // cunt (f- version); pl. ablative - 'fituilla', // cunt (f- version); pl. adessive - 'fituille', // cunt (f- version); pl. allative - 'fituista', // cunt (f- version); pl. elative - 'fittujen', // cunt (f- version); pl. genitive - 'fittuihin', // cunt (f- version); pl. illative - 'fituissa', // cunt (f- version); pl. inessive - 'fitut', // cunt (f- version); pl. nominative - 'fittuja', // cunt (f- version); pl. partitive - 'fiddu', // cunt (fidd- version); interjection, sg. nominative - 'fiddut', // cunt (fidd- version); pl. nominative - 'fiddulta', // cunt (fidd- version); sg. ablative - 'fiddulla', // cunt (fidd- version); sg. adessive - 'fiddulle', // cunt (fidd- version); sg. allative - 'fiddusta', // cunt (fidd- version); sg. elative - 'fiddun', // cunt (fidd- version); sg. genitive - 'fidduun', // cunt (fidd- version); sg. illative - 'fiddussa', // cunt (fidd- version); sg. inessive - 'fiddua', // cunt (fidd- version); sg. partitive - 'fidduilta', // cunt (fidd- version); pl. ablative - 'fidduilla', // cunt (fidd- version); pl. adessive - 'fidduille', // cunt (fidd- version); pl. allative - 'fidduista', // cunt (fidd- version); pl. elative - 'fiddujen', // cunt (fidd- version); pl. genitive - 'fidduihin', // cunt (fidd- version); pl. illative - 'fidduissa', // cunt (fidd- version); pl. inessive - 'fiddut', // cunt (fidd- version); pl. nominative - 'fidduja', // cunt (fidd- version); pl. partitive - 'horo', // whore; interjection, sg. nominative - 'horot', // whore; pl. nominative - 'horolta', // whore; sg. ablative - 'horolla', // whore; sg. adessive - 'horolle', // whore; sg. allative - 'horosta', // whore; sg. elative - 'horon', // whore; sg. genitive - 'horoon', // whore; sg. illative - 'horossa', // whore; sg. inessive - 'horoa', // whore; sg. partitive - 'horoilta', // whore; pl. ablative - 'horoilla', // whore; pl. adessive - 'horoille', // whore; pl. allative - 'horoista', // whore; pl. elative - 'horojen', // whore; pl. genitive - 'horoihin', // whore; pl. illative - 'horoissa', // whore; pl. inessive - 'horot', // whore; pl. nominative - 'horoja' // whore; pl. partitive - ]; -}; diff --git a/seed/fr.js b/seed/fr.js deleted file mode 100644 index 7fd91b8..0000000 --- a/seed/fr.js +++ /dev/null @@ -1,65 +0,0 @@ -/* returns array of French bad words */ -module.exports=function(){ - - return [ - 'abruti', // Idiot (masculine) - 'abrutie', // Idiot (feminine) - 'baise', // Fuck - 'baisé', // Fucked - 'baiser', // To fuck - 'batard', // Bastard - 'bite', // Dick - 'bougnoul', // Sandnigger - 'branleur', // Wanker - 'burne', // Testicle - 'chier', // To shit - 'cocu', // Cuckold - 'con', // Idiot - 'connard', // Idiot - 'connasse', // Stupid and annoying girl - 'conne', // Idiot (feminine) - 'couille', // Ball (testicle) - 'couillon', // Stupid (masculine) - 'couillonne', // Stupid (feminine) - 'crevard', // Backstabber or Hobo, depending on the context - 'cul', // Ass - 'encule', // Mother-fucker (masculine) - 'enculé', // Mother-fucker (masculine) - 'enculee', // Mother-fucker (feminine) - 'enculée', // Mother-fucker (feminine) - 'enculer', // To fuck in the ass - 'enfoire', // Bastard (masculine) - 'enfoiré', // Bastard (masculine) - 'fion', // Ass - 'foutre', // Cum - 'merde', // Shit - 'negre', // Nigger (masculine) - 'nègre', // Nigger (masculine) - 'negresse', // Nigger (feminine) - 'négresse', // Nigger (feminine) - 'nique', // Fuck - 'niquer', // To fuck - 'partouze', // Sex orgy - 'pd', // Fag - 'pede', // Fag - 'pédé', // Fag - 'petasse', // Slut/Show-off (feminine) - 'pétasse', // Slut/Show-off (feminine) - 'pine', // Dick - 'pouffe', // Show-off (feminine) - 'pouffiasse', // Show-off (feminine) - 'putain', // Slut - 'pute', // Slut - 'salaud', // Bastard/backstabber (masculine) - 'salop', // Bastard/backstabber (masculine) - 'salopard', // Bastard/backstabber (masculine) - 'salope', // Slut (feminine) - 'sodomie', // Sodomy - 'sucer', // To suck - 'tapette', // Fag - 'tare', // Insane - 'taré', // Insane - 'vagin', // Vagina - 'zob' // Dick - ]; -}; diff --git a/seed/hi.js b/seed/hi.js deleted file mode 100644 index 03e3b62..0000000 --- a/seed/hi.js +++ /dev/null @@ -1,102 +0,0 @@ -/* returns array of Hindi bad words */ -module.exports=function(){ - - return [ - "aand", - "aandu", - "balatkar", - "beti chod", - "bhadva", - "bhadve", - "bhandve", - "bhootni ke", - "bhosad", - "bhosadi ke", - "boobe", - "chakke", - "chinaal", - "chinki", - "chod", - "chodu", - "chodu bhagat", - "chooche", - "choochi", - "choot", - "choot ke baal", - "chootia", - "chootiya", - "chuche", - "chuchi", - "chudai khanaa", - "chudan chudai", - "chut", - "chut ke baal", - "chut ke dhakkan", - "chut maarli", - "chutad", - "chutadd", - "chutan", - "chutia", - "chutiya", - "gaand", - "gaandfat", - "gaandmasti", - "gaandufad", - "gandu", - "gashti", - "gasti", - "ghassa", - "ghasti", - "harami", - "haramzade", - "hawas", - "hawas ke pujari", - "hijda", - "hijra", - "jhant", - "jhant chaatu", - "jhant ke baal", - "jhantu", - "kamine", - "kaminey", - "kanjar", - "kutta", - "kutta kamina", - "kutte ki aulad", - "kutte ki jat", - "kuttiya", - "loda", - "lodu", - "lund", - "lund choos", - "lund khajoor", - "lundtopi", - "lundure", - "maa ki chut", - "maal", - "madar chod", - "mooh mein le", - "mutth", - "najayaz", - "najayaz aulaad", - "najayaz paidaish", - "paki", - "pataka", - "patakha", - "raand", - "randi", - "saala", - "saala kutta", - "saali kutti", - "saali randi", - "suar", - "suar ki aulad", - "tatte", - "tatti", - "teri maa ka bhosada", - "teri maa ka boba chusu", - "teri maa ki chut", - "tharak", - "tharki", - ]; -}; diff --git a/seed/hu.js b/seed/hu.js deleted file mode 100644 index 798f516..0000000 --- a/seed/hu.js +++ /dev/null @@ -1,102 +0,0 @@ -/* returns array of Hungarian bad words */ -module.exports=function(){ - - return [ - "balfasz", - "balfaszok", - "balfaszokat", - "balfaszt", - "barmok", - "barmokat", - "barmot", - "barom", - "baszik", - "bazmeg", - "buksza", - "bukszák", - "bukszákat", - "bukszát", - "búr", - "búrok", - "csöcs", - "csöcsök", - "csöcsöket", - "csöcsöt", - "fasz", - "faszfej", - "faszfejek", - "faszfejeket", - "faszfejet", - "faszok", - "faszokat", - "faszt", - "fing", - "fingok", - "fingokat", - "fingot", - "franc", - "francok", - "francokat", - "francot", - "geci", - "gecibb", - "gecik", - "geciket", - "gecit", - "kibaszott", - "kibaszottabb", - "kúr", - "kurafi", - "kurafik", - "kurafikat", - "kurafit", - "kurva", - "kurvák", - "kurvákat", - "kurvát", - "leggecibb", - "legkibaszottabb", - "legszarabb", - "marha", - "marhák", - "marhákat", - "marhát", - "megdöglik", - "pele", - "pelék", - "picsa", - "picsákat", - "picsát", - "pina", - "pinák", - "pinákat", - "pinát", - "pofa", - "pofákat", - "pofát", - "pöcs", - "pöcsök", - "pöcsöket", - "pöcsöt", - "punci", - "puncik", - "segg", - "seggek", - "seggeket", - "segget", - "seggfej", - "seggfejek", - "seggfejeket", - "seggfejet", - "szajha", - "szajhák", - "szajhákat", - "szajhát", - "szar", - "szarabb", - "szarik", - "szarok", - "szarokat", - "szart", - ]; -}; diff --git a/seed/it.js b/seed/it.js deleted file mode 100644 index b70a945..0000000 --- a/seed/it.js +++ /dev/null @@ -1,186 +0,0 @@ -/* returns array of Italian bad words */ -module.exports=function(){ - - return [ - "allupato", - "ammucchiata", - "anale", - "arrapato", - "arrusa", - "arruso", - "assatanato", - "bagascia", - "bagassa", - "bagnarsi", - "baldracca", - "balle", - "battere", - "battona", - "belino", - "biga", - "bocchinara", - "bocchino", - "bofilo", - "boiata", - "bordello", - "brinca", - "bucaiolo", - "budiùlo", - "buona donna", - "busone", - "cacca", - "caccati in mano e prenditi a schiaffi", - "caciocappella", - "cadavere", - "cagare", - "cagata", - "cagna", - "cammello", - "cappella", - "carciofo", - "carità", - "casci", - "cazzata", - "cazzimma", - "cazzo", - "checca", - "chiappa", - "chiavare", - "chiavata", - "ciospo", - "ciucciami il cazzo", - "coglione", - "coglioni", - "cornuto", - "cozza", - "culattina", - "culattone", - "culo", - "di merda", - "ditalino", - "duro", - "fare unaŠ", - "fava", - "femminuccia", - "fica", - "figa", - "figlio di buona donna", - "figlio di puttana", - "figone", - "finocchio", - "fottere", - "fottersi", - "fracicone", - "fregna", - "frocio", - "froscio", - "fuori come un balcone", - "goldone", - "grilletto", - "guanto", - "guardone", - "incazzarsi", - "incoglionirsi", - "ingoio", - "l'arte bolognese", - "leccaculo", - "lecchino", - "lofare", - "loffa", - "loffare", - "lumaca", - "manico", - "mannaggia", - "merda", - "merdata", - "merdoso", - "mignotta", - "minchia", - "minchione", - "mona", - "monta", - "montare", - "mussa", - "nave scuola", - "nerchia", - "nudo", - "padulo", - "palle", - "palloso", - "patacca", - "patonza", - "pecorina", - "pesce", - "picio", - "pincare", - "pipa", - "pipì", - "pippone", - "pirla", - "pisciare", - "piscio", - "pisello", - "pistola", - "pistolotto", - "pomiciare", - "pompa", - "pompino", - "porca", - "porca madonna", - "porca miseria", - "porca puttana", - "porco due", - "porco zio", - "potta", - "puppami", - "puttana", - "quaglia", - "recchione", - "regina", - "rincoglionire", - "rizzarsi", - "rompiballe", - "ruffiano", - "sbattere", - "sbattersi", - "sborra", - "sborrata", - "sborrone", - "sbrodolata", - "scopare", - "scopata", - "scorreggiare", - "sega", - "slinguare", - "slinguata", - "smandrappata", - "soccia", - "socmel", - "sorca", - "spagnola", - "spompinare", - "sticchio", - "stronza", - "stronzata", - "stronzo", - "succhiami", - "sveltina", - "sverginare", - "tarzanello", - "terrone", - "testa di cazzo", - "tette", - "tirare", - "topa", - "troia", - "trombare", - "uccello", - "vacca", - "vaffanculo", - "vangare", - "venire", - "zinne", - "zio cantante", - "zoccola", - ]; -}; diff --git a/seed/ja.js b/seed/ja.js deleted file mode 100644 index d9ae869..0000000 --- a/seed/ja.js +++ /dev/null @@ -1,192 +0,0 @@ -/* returns array of Japanese bad words */ -module.exports=function(){ - - return [ - "3p", - "g スポット", - "s & m", - "sm", - "sm女王", - "xx", - "アジアのかわいい女の子", - "アスホール", - "アナリングス", - "アナル", - "いたずら", - "イラマチオ", - "ウェブカメラ", - "エクスタシー", - "エスコート", - "エッチ", - "エロティズム", - "エロティック", - "オーガズム", - "オカマ", - "おしっこ", - "おしり", - "オシリ", - "おしりのあな", - "おっぱい", - "オッパイ", - "オナニー", - "オマンコ", - "おもらし", - "お尻", - "カーマスートラ", - "カント", - "クリトリス", - "グループ・セックス", - "グロ", - "クンニリングス", - "ゲイ・セックス", - "ゲイの男性", - "ゲイボーイ", - "ゴールデンシャワー", - "コカイン", - "ゴックン", - "サディズム", - "しばり", - "スウィンガー", - "スカートの中", - "スカトロ", - "ストラップオン", - "ストリップ劇場", - "スラット", - "スリット", - "セクシーな", - "セクシーな 10 代", - "セックス", - "ソドミー", - "ちんこ", - "ディープ・スロート", - "ディック", - "ディルド", - "デートレイプ", - "デブ", - "テレフォンセックス", - "ドッグスタイル", - "トップレス", - "なめ", - "ニガー", - "ヌード", - "ネオ・ナチ", - "ハードコア", - "パイパン", - "バイブレーター", - "バック・スタイル", - "パンティー", - "ビッチ", - "ファック", - "ファンタジー", - "フィスト", - "フェティッシュ", - "フェラチオ", - "ふたなり", - "ぶっかけ", - "フック", - "プリンス アルバート ピアス", - "プレイボーイ", - "ベアバック", - "ペニス", - "ペニスバンド", - "ボーイズラブ", - "ボールギャグ", - "ボールを蹴る", - "ぽっちゃり", - "ホモ", - "ポルノ", - "ポルノグラフィー", - "ボンテージ", - "マザー・ファッカー", - "マスターベーション", - "まんこ", - "やおい", - "やりまん", - "ユダヤ人", - "ラティーナ", - "ラバー", - "ランジェリー", - "レイプ", - "レズビアン", - "ローター", - "ロリータ", - "淫乱", - "陰毛", - "革抑制", - "騎上位", - "巨根", - "巨乳", - "強姦犯", - "玉なめ", - "玉舐め", - "緊縛", - "近親相姦", - "嫌い", - "後背位", - "合意の性交", - "拷問", - "黒人", - "殺し方", - "殺人事件", - "殺人方法", - "支配", - "児童性虐待", - "自己愛性", - "射精", - "手コキ", - "獣姦", - "女の子", - "女王様", - "女子高生", - "女装", - "新しいポルノ", - "人妻", - "人種", - "性交", - "正常位", - "生殖器", - "精液", - "挿入", - "足フェチ", - "足を広げる", - "大陰唇", - "脱衣", - "茶色のシャワー", - "中出し", - "潮吹き女", - "潮吹き男性", - "直腸", - "剃毛", - "貞操帯", - "奴隷", - "二穴", - "乳首", - "尿道プレイ", - "覗き", - "売春婦", - "縛り", - "噴出", - "糞", - "糞尿愛好症", - "糞便", - "平手打ち", - "変態", - "勃起する", - "夢精", - "毛深い", - "誘惑", - "幼児", - "幼児性愛者", - "裸", - "裸の女性", - "乱交", - "両性", - "両性具有", - "両刀", - "輪姦", - "卍", - "宦官", - "肛門", - "膣", - ]; -}; diff --git a/seed/ko.js b/seed/ko.js deleted file mode 100644 index 9001ea3..0000000 --- a/seed/ko.js +++ /dev/null @@ -1,78 +0,0 @@ -/* returns array of Korean bad words */ -module.exports=function(){ - - return [ - "강간", - "개새끼", - "개자식", - "개좆", - "개차반", - "거유", - "계집년", - "고자", - "근친", - "노모", - "니기미", - "뒤질래", - "딸딸이", - "때씹", - "또라이", - "뙤놈", - "로리타", - "망가", - "몰카", - "미친", - "미친새끼", - "바바리맨", - "변태", - "병신", - "보지", - "불알", - "빠구리", - "사까시", - "섹스", - "스와핑", - "쌍놈", - "씨발", - "씨발놈", - "씨팔", - "씹", - "씹물", - "씹빨", - "씹새끼", - "씹알", - "씹창", - "씹팔", - "암캐", - "애자", - "야동", - "야사", - "야애니", - "엄창", - "에로", - "염병", - "옘병", - "유모", - "육갑", - "은꼴", - "자위", - "자지", - "잡년", - "종간나", - "좆", - "좆만", - "죽일년", - "쥐좆", - "직촬", - "짱깨", - "쪽바리", - "창녀", - "포르노", - "하드코어", - "호로", - "화냥년", - "후레아들", - "후장", - "희쭈그리", - ]; -}; diff --git a/seed/nl.js b/seed/nl.js deleted file mode 100644 index 6d8d6d4..0000000 --- a/seed/nl.js +++ /dev/null @@ -1,198 +0,0 @@ -/* returns array of Dutch bad words */ -module.exports=function(){ - - return [ - "aardappels afgieteng", - "achter het raam zitten", - "afberen", - "aflebberen", - "afrossen", - "afrukken", - "aftrekken", - "afwerkplaats", - "afzeiken", - "afzuigen", - "anderhalve man en een paardekop", - "anita", - "asbak", - "aso", - "bagger schijten", - "balen", - "bedonderen", - "befborstelg", - "beffen", - "bekken", - "belazeren", - "besodemieterd zijn", - "besodemieteren", - "beurt", - "boemelen", - "boerelul", - "boerenpummelg", - "bokkelul", - "botergeil", - "broekhoesten", - "brugpieperg", - "buffelen", - "buiten de pot piesen", - "da's kloten van de bok", - "de ballen", - "de hoer spelen", - "de hond uitlaten", - "de koffer induiken", - "delg", - "de pijp aan maarten geven", - "de pijp uitgaan", - "dombo", - "draaikontg", - "driehoog achter wonen", - "drolg", - "drooggeiler", - "droogkloot", - "een beurt geven", - "een nummertje maken", - "een wip maken", - "eikel", - "engerd", - "flamoes", - "flikken", - "flikker", - "gadverdamme", - "galbak", - "gat", - "gedoogzone", - "geilneef", - "gesodemieter", - "godverdomme", - "graftak", - "gras maaien", - "gratenkutg", - "greppeldel", - "griet", - "hoempert", - "hoer", - "hoerenbuurt", - "hoerenloper", - "hoerig", - "hol", - "hufter", - "huisdealer", - "johny", - "kanen", - "kettingzeugg", - "klaarkomen", - "klerebeer", - "klojo", - "klooien", - "klootjesvolk", - "klootoog", - "klootzak", - "kloten", - "knor", - "kontg", - "kontneuken", - "krentekakker", - "kut", - "kuttelikkertje", - "kwakkieg", - "liefdesgrot", - "lul", - "lul-de-behanger", - "lulhannes", - "lummel", - "mafketel", - "matennaaierg", - "matje", - "mof", - "mutsg", - "naaien", - "naakt", - "neuken", - "neukstier", - "nicht", - "oetlul", - "opgeilen", - "opkankeren", - "oprotten", - "opsodemieteren", - "op z'n hondjes", - "op z'n sodemieter geven", - "opzouten", - "ouwehoer", - "ouwehoeren", - "ouwe rukker", - "paal", - "paardelul", - "palen", - "penozeg", - "piesen", - "pijpbekkieg", - "pijpen", - "pik", - "pleurislaaier", - "poep", - "poepen", - "poot", - "portiekslet", - "pot", - "potverdorie", - "publiciteitsgeil", - "raaskallen", - "reet", - "reetridder", - "reet trappen, voor zijn", - "remsporeng", - "reutelen", - "rothoer", - "rotzak", - "rukhond", - "rukken", - "schatje", - "schijt", - "schijten", - "schoft", - "schuinsmarcheerder", - "shit", - "slempen", - "sletg", - "sletterig", - "slik mijn zaad", - "snolg", - "spuiten", - "standje", - "standje-69g", - "stoephoer", - "stootje", - "strontg", - "sufferdg", - "tapijtnek", - "teefg", - "temeier", - "teringlijer", - "toeter", - "tongzoeng", - "triootjeg", - "trottoir prostituée", - "trottoirteef", - "utrecht", - "vergallen", - "verkloten", - "verneuken", - "viespeuk", - "vingeren", - "vleesroos", - "voor jan lul", - "voor jan-met-de-korte-achternaam", - "watje", - "welzijnsmafia", - "wijf", - "wippen", - "wuftje", - "zaadje", - "zakkenwasser", - "zeiken", - "zeiker", - "zuigen", - "zuiplap", - ]; -}; diff --git a/seed/no.js b/seed/no.js deleted file mode 100644 index b92a788..0000000 --- a/seed/no.js +++ /dev/null @@ -1,19 +0,0 @@ -/* returns array of Norwegien bad words */ -module.exports=function(){ - - return [ - "drittsekk", - "faen i helvete", - "fitte", - "jævla", - "kuk", - "kukene", - "kuker", - "nigger", - "pikk", - "sotrør", - "ståpikk", - "ståpikkene", - "ståpikker", - ]; -}; diff --git a/seed/pl.js b/seed/pl.js deleted file mode 100644 index 26c8dec..0000000 --- a/seed/pl.js +++ /dev/null @@ -1,59 +0,0 @@ -/* returns array of Polish bad words */ -module.exports=function(){ - - return [ - "burdel", - "burdelmama", - "chuj", - "chujnia", - "ciota", - "cipa", - "cyc", - "debil", - "dmuchać", - "do kurwy nędzy", - "dupa", - "dupek", - "duperele", - "dziwka", - "fiut", - "gówno", - "gówno prawda", - "huj", - "jajco", - "jajeczko", - "jajko", - "jajo", - "ja pierdolę", - "jebać", - "jebany", - "kurwa", - "kurwy", - "kutafon", - "kutas", - "lizać pałę", - "obciągać chuja", - "obciągać fiuta", - "obciągać loda", - "pieprzyć", - "pierdolec", - "pierdolić", - "pierdolnięty", - "pierdoła", - "pierdzieć", - "pizda", - "pojeb", - "popierdolony", - "robic loda", - "robić loda", - "ruchać", - "rzygać", - "skurwysyn", - "sraczka", - "srać", - "suka", - "syf", - "wkurwiać", - "zajebisty", - ]; -}; diff --git a/seed/pt.js b/seed/pt.js deleted file mode 100644 index bacd67f..0000000 --- a/seed/pt.js +++ /dev/null @@ -1,80 +0,0 @@ -/* returns array of Portugese bad words */ -module.exports=function(){ - - return [ - "aborto", - "amador", - "ânus", - "aranha", - "ariano", - "balalao", - "bastardo", - "bicha", - "biscate", - "bissexual", - "boceta", - "boob", - "bosta", - "braulio de borracha", - "bumbum", - "burro", - "cabrao", - "cacete", - "cagar", - "camisinha", - "caralho", - "cerveja", - "chochota", - "chupar", - "clitoris", - "cocaína", - "colhoes", - "comer", - "cona", - "consolo", - "corno", - "cu", - "dar o rabo", - "dum raio", - "esporra", - "fecal", - "filho da puta", - "foda", - "foda-se", - "foder", - "frango assado", - "gozar", - "grelho", - "heroína", - "heterosexual", - "homem gay", - "homoerótico", - "homosexual", - "inferno", - "lésbica", - "lolita", - "mama", - "merda", - "paneleiro", - "passar um cheque", - "pau", - "peidar", - "pênis", - "pinto", - "porra", - "puta", - "puta que pariu", - "puta que te pariu", - "queca", - "sacanagem", - "saco", - "torneira", - "transar", - "vai-te foder", - "vai tomar no cu", - "veado", - "vibrador", - "xana", - "xochota", - ]; -}; diff --git a/seed/ru.js b/seed/ru.js deleted file mode 100644 index 974f783..0000000 --- a/seed/ru.js +++ /dev/null @@ -1,158 +0,0 @@ -/* returns array of Russian bad words */ -module.exports=function(){ - - return [ - "bychara", - "byk", - "chernozhopyi", - "dolboy'eb", - "ebalnik", - "ebalo", - "ebalom sch'elkat", - "gol", - "mudack", - "opizdenet", - "osto'eblo", - "ostokhuitel'no", - "ot'ebis", - "otmudohat", - "otpizdit", - "otsosi", - "padlo", - "pedik", - "perdet", - "petuh", - "pidar gnoinyj", - "pizda", - "pizdato", - "pizdatyi", - "piz'det", - "pizdetc", - "pizdoi nakryt'sja", - "pizd'uk", - "piz`dyulina", - "podi ku'evo", - "poeben", - "po'imat' na konchik", - "po'iti posrat", - "po khuy", - "poluchit pizdy", - "pososi moyu konfetku", - "prissat", - "proebat", - "promudobl'adsksya pizdopro'ebina", - "propezdoloch", - "prosrat", - "raspeezdeyi", - "raspizdatyi", - "raz'yebuy", - "raz'yoba", - "s'ebat'sya", - "shalava", - "styervo", - "sukin syn", - "svodit posrat", - "svoloch", - "trakhat'sya", - "trimandoblydskiy pizdoproyob", - "ubl'yudok", - "uboy", - "u'ebitsche", - "vafl'a", - "vafli lovit", - "v pizdu", - "vyperdysh", - "vzdrochennyi", - "yeb vas", - "za'ebat", - "zaebis", - "zalupa", - "zalupat", - "zasranetc", - "zassat", - "zlo'ebuchy", - "бардак", - "бздёнок", - "блядки", - "блядовать", - "блядство", - "блядь", - "бугор", - "во пизду", - "встать раком", - "выёбываться", - "гандон", - "говно", - "говнюк", - "голый", - "дать пизды", - "дерьмо", - "дрочить", - "другой дразнится", - "ёбарь", - "ебать", - "ебать-копать", - "ебло", - "ебнуть", - "ёб твою мать", - "жопа", - "жополиз", - "играть на кожаной флейте", - "измудохать", - "каждый дрочит как он хочет", - "какая разница", - "как два пальца обоссать", - "курите мою трубку", - "лысого в кулаке гонять", - "малофя", - "манда", - "мандавошка", - "мент", - "муда", - "мудило", - "мудозмон", - "наебать", - "наебениться", - "наебнуться", - "на фиг", - "на хуй", - "на хую вертеть", - "на хуя", - "нахуячиться", - "невебенный", - "не ебет", - "ни за хуй собачу", - "ни хуя", - "обнаженный", - "обоссаться можно", - "один ебётся", - "опесдол", - "офигеть", - "охуеть", - "охуйтельно", - "половое сношение", - "секс", - "сиски", - "спиздить", - "срать", - "ссать", - "траxать", - "ты мне ваньку не валяй", - "фига", - "хапать", - "хер с ней", - "хер с ним", - "хохол", - "хрен", - "хуёво", - "хуёвый", - "хуем груши околачивать", - "хуеплет", - "хуило", - "хуиней страдать", - "хуиня", - "хуй", - "хуйнуть", - "хуй пинать", - ]; -}; diff --git a/seed/sv.js b/seed/sv.js deleted file mode 100644 index 8dccefb..0000000 --- a/seed/sv.js +++ /dev/null @@ -1,49 +0,0 @@ -/* returns array of Swedish bad words */ -module.exports=function(){ - - return [ - "arsle", - "brutta", - "discofitta", - "dra åt helvete", - "fan", - "fitta", - "fittig", - "för helvete", - "helvete", - "hård", - "jävlar", - "knulla", - "kuk", - "kuksås", - "kötthuvud", - "köttnacke", - "moona", - "moonade", - "moonar", - "moonat", - "mutta", - "nigger", - "neger", - "olla", - "pippa", - "pitt", - "prutt", - "pök", - "runka", - "röv", - "rövhål", - "rövknulla", - "satan", - "skita", - "skit ner dig", - "skäggbiff", - "snedfitta", - "snefitta", - "stake", - "subba", - "sås", - "sätta på", - "tusan", - ]; -}; diff --git a/seed/th.js b/seed/th.js deleted file mode 100644 index e0c63bb..0000000 --- a/seed/th.js +++ /dev/null @@ -1,37 +0,0 @@ -/* returns array of Thai bad words */ -module.exports=function(){ - - return [ - "กระดอ", - "กระเด้า", - "กระหรี่", - "กะปิ", - "กู", - "ขี้", - "ควย", - "จิ๋ม", - "จู๋", - "เจ๊ก", - "เจี๊ยว", - "ดอกทอง", - "ตอแหล", - "ตูด", - "น้ําแตก", - "มึง", - "แม่ง", - "เย็ด", - "รูตูด", - "ล้างตู้เย็น", - "ส้นตีน", - "สัด", - "เสือก", - "หญิงชาติชั่ว", - "หลั่ง", - "ห่า", - "หํา", - "หี", - "เหี้ย", - "อมนกเขา", - "ไอ้ควาย", - ]; -}; diff --git a/seed/tlh.js b/seed/tlh.js deleted file mode 100644 index 5668ae0..0000000 --- a/seed/tlh.js +++ /dev/null @@ -1,9 +0,0 @@ -/* returns array of Klingon bad words */ -module.exports=function(){ - - return [ - "ghuy'cha'", - "QI'yaH", - "Qu'vatlh", - ]; -}; diff --git a/seed/tr.js b/seed/tr.js deleted file mode 100644 index 9ff4e6c..0000000 --- a/seed/tr.js +++ /dev/null @@ -1,148 +0,0 @@ -/* returns array of Turkish bad words */ -module.exports=function(){ - - return [ - "am", - "amcığa", - "amcığı", - "amcığın", - "amcık", - "amcıklar", - "amcıklara", - "amcıklarda", - "amcıklardan", - "amcıkları", - "amcıkların", - "amcıkta", - "amcıktan", - "amı", - "amlar", - "çingene", - "Çingenede", - "Çingeneden", - "Çingeneler", - "Çingenelerde", - "Çingenelerden", - "Çingenelere", - "Çingeneleri", - "Çingenelerin", - "Çingenenin", - "Çingeneye", - "Çingeneyi", - "göt", - "göte", - "götler", - "götlerde", - "götlerden", - "götlere", - "götleri", - "götlerin", - "götte", - "götten", - "götü", - "götün", - "götveren", - "götverende", - "götverenden", - "götverene", - "götvereni", - "götverenin", - "götverenler", - "götverenlerde", - "götverenlerden", - "götverenlere", - "götverenleri", - "götverenlerin", - "kaltağa", - "kaltağı", - "kaltağın", - "kaltak", - "kaltaklar", - "kaltaklara", - "kaltaklarda", - "kaltaklardan", - "kaltakları", - "kaltakların", - "kaltakta", - "kaltaktan", - "orospu", - "orospuda", - "orospudan", - "orospular", - "orospulara", - "orospularda", - "orospulardan", - "orospuları", - "orospuların", - "orospunun", - "orospuya", - "orospuyu", - "otuz birci", - "otuz bircide", - "otuz birciden", - "otuz birciler", - "otuz bircilerde", - "otuz bircilerden", - "otuz bircilere", - "otuz bircileri", - "otuz bircilerin", - "otuz bircinin", - "otuz birciye", - "otuz birciyi", - "saksocu", - "saksocuda", - "saksocudan", - "saksocular", - "saksoculara", - "saksocularda", - "saksoculardan", - "saksocuları", - "saksocuların", - "saksocunun", - "saksocuya", - "saksocuyu", - "sıçmak", - "sik", - "sike", - "siker sikmez", - "siki", - "sikilir sikilmez", - "sikin", - "sikler", - "siklerde", - "siklerden", - "siklere", - "sikleri", - "siklerin", - "sikmek", - "sikmemek", - "sikte", - "sikten", - "siktir", - "siktirir siktirmez", - "taşağa", - "taşağı", - "taşağın", - "taşak", - "taşaklar", - "taşaklara", - "taşaklarda", - "taşaklardan", - "taşakları", - "taşakların", - "taşakta", - "taşaktan", - "yarağa", - "yarağı", - "yarağın", - "yarak", - "yaraklar", - "yaraklara", - "yaraklarda", - "yaraklardan", - "yarakları", - "yarakların", - "yarakta", - "yaraktan", - ]; -}; diff --git a/seed/zh.js b/seed/zh.js deleted file mode 100644 index 892e674..0000000 --- a/seed/zh.js +++ /dev/null @@ -1,300 +0,0 @@ -/* returns array of Chinese bad words */ -module.exports=function(){ - - return [ - "13.", - "13点", - "三级片", - "下三烂", - "下贱", - "个老子的", - "九游", - "乳", - "乳交", - "乳头", - "乳房", - "乳波臀浪", - "交配", - "仆街", - "他奶奶", - "他奶奶的", - "他奶娘的", - "他妈", - "他妈ㄉ王八蛋", - "他妈地", - "他妈的", - "他娘", - "他马的", - "你个傻比", - "你他马的", - "你全家", - "你奶奶的", - "你她马的", - "你妈", - "你妈的", - "你娘", - "你娘卡好", - "你娘咧", - "你它妈的", - "你它马的", - "你是鸡", - "你是鸭", - "你马的", - "做爱", - "傻比", - "傻逼", - "册那", - "军妓", - "几八", - "几叭", - "几巴", - "几芭", - "刚度", - "刚瘪三", - "包皮", - "十三点", - "卖B", - "卖比", - "卖淫", - "卵", - "卵子", - "双峰微颤", - "口交", - "口肯", - "叫床", - "吃屎", - "后庭", - "吹箫", - "塞你公", - "塞你娘", - "塞你母", - "塞你爸", - "塞你老师", - "塞你老母", - "处女", - "外阴", - "大卵子", - "大卵泡", - "大鸡巴", - "奶", - "奶奶的熊", - "奶子", - "奸", - "奸你", - "她妈地", - "她妈的", - "她马的", - "妈B", - "妈个B", - "妈个比", - "妈个老比", - "妈妈的", - "妈比", - "妈的", - "妈的B", - "妈逼", - "妓", - "妓女", - "妓院", - "妳她妈的", - "妳妈的", - "妳娘的", - "妳老母的", - "妳马的", - "姘头", - "姣西", - "姦", - "娘个比", - "娘的", - "婊子", - "婊子养的", - "嫖娼", - "嫖客", - "它妈地", - "它妈的", - "密洞", - "射你", - "射精", - "小乳头", - "小卵子", - "小卵泡", - "小瘪三", - "小肉粒", - "小骚比", - "小骚货", - "小鸡巴", - "小鸡鸡", - "屁眼", - "屁股", - "屄", - "屌", - "巨乳", - "干x娘", - "干七八", - "干你", - "干你妈", - "干你娘", - "干你老母", - "干你良", - "干妳妈", - "干妳娘", - "干妳老母", - "干妳马", - "干您娘", - "干机掰", - "干死CS", - "干死GM", - "干死你", - "干死客服", - "幹", - "强奸", - "强奸你", - "性", - "性交", - "性器", - "性无能", - "性爱", - "情色", - "想上你", - "懆您妈", - "懆您娘", - "懒8", - "懒八", - "懒叫", - "懒教", - "成人", - "我操你祖宗十八代", - "扒光", - "打炮", - "打飞机", - "抽插", - "招妓", - "插你", - "插死你", - "撒尿", - "操你", - "操你全家", - "操你奶奶", - "操你妈", - "操你娘", - "操你祖宗", - "操你老妈", - "操你老母", - "操妳", - "操妳全家", - "操妳妈", - "操妳娘", - "操妳祖宗", - "操机掰", - "操比", - "操逼", - "放荡", - "日他娘", - "日你", - "日你妈", - "日你老娘", - "日你老母", - "日批", - "月经", - "机八", - "机巴", - "机机歪歪", - "杂种", - "浪叫", - "淫", - "淫乱", - "淫妇", - "淫棍", - "淫水", - "淫秽", - "淫荡", - "淫西", - "湿透的内裤", - "激情", - "灨你娘", - "烂货", - "烂逼", - "爛", - "狗屁", - "狗日", - "狗狼养的", - "玉杵", - "王八蛋", - "瓜娃子", - "瓜婆娘", - "瓜批", - "瘪三", - "白烂", - "白痴", - "白癡", - "祖宗", - "私服", - "笨蛋", - "精子", - "老二", - "老味", - "老母", - "老瘪三", - "老骚比", - "老骚货", - "肉壁", - "肉棍子", - "肉棒", - "肉缝", - "肏", - "肛交", - "肥西", - "色情", - "花柳", - "荡妇", - "賤", - "贝肉", - "贱B", - "贱人", - "贱货", - "贼你妈", - "赛你老母", - "赛妳阿母", - "赣您娘", - "轮奸", - "迷药", - "逼", - "逼样", - "野鸡", - "阳具", - "阳萎", - "阴唇", - "阴户", - "阴核", - "阴毛", - "阴茎", - "阴道", - "阴部", - "雞巴", - "靠北", - "靠母", - "靠爸", - "靠背", - "靠腰", - "驶你公", - "驶你娘", - "驶你母", - "驶你爸", - "驶你老师", - "驶你老母", - "骚比", - "骚货", - "骚逼", - "鬼公", - "鸡8", - "鸡八", - "鸡叭", - "鸡吧", - "鸡奸", - "鸡巴", - "鸡芭", - "鸡鸡", - "龟儿子", - "龟头", - ]; -}; diff --git a/test/acceptance/filter.js b/test/acceptance/filter.js index dab10e0..8bf734d 100644 --- a/test/acceptance/filter.js +++ b/test/acceptance/filter.js @@ -6,14 +6,14 @@ describe('#replace test', function(){ it('Should throw an error when setLocale is not called', function(){ assert.throws(function(){filter.replace('this is ass')}, "Dictionary is not populated. Perhaps you forgot to call setLocale ?") }); - + it('Should replace bad words with stars when no replacement patterns and words are given', function(){ - filter.setLocale(); + filter.setLocale(); var dict = filter.getDictionary(); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString); var expectedOutput = 'This is a bad string my ***. Also this string contains **** and ****** and *******. But this is just a test. Do not mind ****' - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); it('Should replace bad words with the provided word given replacement pattern is word', function(){ @@ -22,50 +22,50 @@ describe('#replace test', function(){ var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString, 'word', 'FOO'); var expectedOutput = 'This is a bad string my FOO. Also this string contains FOO and FOO and FOO. But this is just a test. Do not mind FOO'; - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); - + it('Should replace bad words with grawlix given replacement pattern is grawlix', function(){ filter.setLocale(); var dict = filter.getDictionary(); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString, 'grawlix'); - assert.include(gotOutput, '&', 'Verified that obtained output matches expected one') + assert.include(gotOutput, '&', 'Verified that obtained output matches expected one') }); - + it('Should replace bad words with BLEEP when replacement patterns is word but replacement word is not given', function(){ - filter.setLocale(); + filter.setLocale(); var dict = filter.getDictionary(); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString, 'word'); var expectedOutput = 'This is a bad string my BLEEP. Also this string contains BLEEP and BLEEP and BLEEP. But this is just a test. Do not mind BLEEP'; - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); - + it('Should ignore the replacement word if the replacement pattern is grawlix', function(){ - filter.setLocale(); + filter.setLocale(); var dict = filter.getDictionary(); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString, 'grawlix', '***'); - assert.include(gotOutput, '&', 'Verified that obtained output matches expected one') + assert.include(gotOutput, '&', 'Verified that obtained output matches expected one') }); it('Should replace bad words with given characters when replacement pattern is character', function(){ - filter.setLocale(); + filter.setLocale(); var dict = filter.getDictionary(); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString, 'character', ';'); var expectedOutput = 'This is a bad string my ;;;. Also this string contains ;;;; and ;;;;;; and ;;;;;;;. But this is just a test. Do not mind ;;;;' - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); - + it('Should replace bad words with given characters when replacement pattern is character when no matter what the character is', function(){ - filter.setLocale(); + filter.setLocale(); var dict = filter.getDictionary(); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString, 'character', '#@'); var expectedOutput = 'This is a bad string my #@#@#@. Also this string contains #@#@#@#@ and #@#@#@#@#@#@ and #@#@#@#@#@#@#@. But this is just a test. Do not mind #@#@#@#@' - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); it('Should replace bad words if we can add words and give it an array of words', function(){ @@ -74,16 +74,16 @@ describe('#replace test', function(){ var inputString = 'This is a bad string my ass. My username is badword and password is goodword. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var expectedOutput = 'This is a bad string my ***. My ******** is badword and ******** is goodword. Also this string contains **** and ****** and *******. But this is just a test. Do not mind ****'; var gotOutput = filter.replace(inputString); - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); - + it('Should not replace bad words if we can remove word', function(){ filter.setLocale(); filter.removeWords("ass"); var inputString = 'This is a bad string my ass. Also this string contains dick and vagina and bastard. But this is just a test. Do not mind fuck'; var gotOutput = filter.replace(inputString); var expectedOutput = 'This is a bad string my ass. Also this string contains **** and ****** and *******. But this is just a test. Do not mind ****' - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); it('Should replace only whole word occurance of bad word and not partial occurance', function(){ @@ -92,7 +92,7 @@ describe('#replace test', function(){ var inputString = 'This is an assimilation borg, my ass!'; var gotOutput = filter.replace(inputString); var expectedOutput = 'This is an assimilation borg, my ***!'; - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); it('Should replace all the bad words if given bad word occurs more than once in the string', function(){ @@ -101,7 +101,7 @@ describe('#replace test', function(){ var inputString = 'This is an assimilation borg, my ass! String also contains vagina,ass,parrot. Will you replace ass, gas ? But not ass123'; var gotOutput = filter.replace(inputString, 'word', 'BOOBOO'); var expectedOutput = 'This is an assimilation borg, my BOOBOO! String also contains BOOBOO,BOOBOO,parrot. Will you replace BOOBOO, gas ? But not ass123'; - assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') + assert.equal(gotOutput, expectedOutput, 'Verified that obtained output matches expected one') }); }); diff --git a/test/unit/filter.js b/test/unit/filter.js index e57daf6..8d72024 100644 --- a/test/unit/filter.js +++ b/test/unit/filter.js @@ -1,53 +1,50 @@ var assert = require('chai').assert; var filter = require('../../filter.js'); -var en_words_list = require('../../seed/en-base.js'); -var en_words = en_words_list(); -var fr_words_list = require('../../seed/fr.js'); -var fr_words = fr_words_list(); -var it_words_list = require('../../seed/it.js'); -var it_words = it_words_list(); +var en_words = require('naughty-words').en; +var fr_words = require('naughty-words').fr; +var it_words = require('naughty-words').it; describe('#setLocale tests', function(){ - it('Should correctly set and populate en-base when no locale is passed', function(){ + it('Should correctly set and populate en when no locale is passed', function(){ assert.doesNotThrow(function(){filter.setLocale()}, 'Error', 'Verified setLocale does not throw error with empty params'); filter.setLocale(); var dict = filter.getDictionary(); - assert.equal(dict.length, en_words.length, 'Verified that without params setLocale inits dictionary as en-base') + assert.equal(dict.length, en_words.length, 'Verified that without params setLocale inits dictionary as en') }); it('Should correctly set and populate when a single locale is passed', function(){ assert.doesNotThrow(function(){filter.setLocale(['fr'])}, 'Error', 'Verified setLocale does not throw error with empty params'); filter.setLocale(['fr']); var dict = filter.getDictionary(); - assert.equal(dict.length, fr_words.length, 'Verified that with single element setLocale inits dictionary correctly'); + assert.equal(dict.length, fr_words.length, 'Verified that with single element setLocale inits dictionary correctly'); }); it('Should correctly set and populate when multiple valid locales are passed', function(){ assert.doesNotThrow(function(){filter.setLocale(['fr','it'])}, 'Error', 'Verified setLocale does not throw error with empty params'); filter.setLocale(['fr', 'it']); var dict = filter.getDictionary(); - assert.equal(dict.length, fr_words.length + it_words.length, 'Verified that with multiple element setLocale inits dictionary correctly'); + assert.equal(dict.length, fr_words.length + it_words.length, 'Verified that with multiple element setLocale inits dictionary correctly'); }); it('Should throw an error when invalid datatype input such as string is passed', function(){ assert.throws(function(){filter.setLocale('frx')}, "Input to locale should be an array. Eg. ['fr']") }); - + it('Should throw an error when invalid datatype input such as number is passed', function(){ assert.throws(function(){filter.setLocale(10)}, "Input to locale should be an array. Eg. ['fr']") }); - + it('Should throw an error when unsupported locale is passed', function(){ - assert.throws(function(){filter.setLocale(['fr', 'xoxo'])}, "Invalid locale supplied to setLocale function. Please supply valid locales including : ar,cs,da,de,en-base,en-uk,en-us,eo,es,fa,fi,fr,hi,hu,it,ja,ko,nl,no,pl,pt,ru,sv,th,tlh,tr,zh") + assert.throws(function(){filter.setLocale(['fr', 'xoxo'])}, "Invalid locale supplied to setLocale function. Please supply valid locales including : ar,cs,da,de,en,eo,es,fa,fi,fr,fr-CA-u-sd-caqc,hi,hu,it,ja,ko,nl,no,pl,pt,ru,sv,th,tlh,tr,zh") }); }); describe('#showAvailableLocales tests', function(){ - + it('Should not throw error when called', function(){ - + assert.doesNotThrow(function(){ filter.showAvailableLocales() }, 'Error', 'Verified that showAvailableLocales does not throw an error'); @@ -56,20 +53,20 @@ describe('#showAvailableLocales tests', function(){ it('Should return array of supported locales', function(){ var supportedLocales = filter.showAvailableLocales(); assert.isAbove(supportedLocales.length, 0, 'Verified that showAvailableLocales returns a list of supported locales'); - }); + }); }); describe('#getLocale tests', function(){ it('Should return locale when a locale has been set', function(){ - filter.setLocale(['fr', 'en-uk']); + filter.setLocale(['fr', 'fr-CA-u-sd-caqc']); var locales = filter.getLocale(); - assert.deepEqual(locales, ['fr', 'en-uk'], 'Verified that getLocales works as expected'); + assert.deepEqual(locales, ['fr', 'fr-CA-u-sd-caqc'], 'Verified that getLocales works as expected'); }); it('Should throw an error whe locale is not set', function(){ - + assert.throws(function(){filter.setLocale(10)}, "Input to locale should be an array. Eg. ['fr']") assert.throws(function(){filter.getLocale()}, "It appears that locale is not set. Perhaps you forgot to call setLocale ?") }); @@ -81,11 +78,11 @@ describe('#getDictionary tests', function(){ assert.doesNotThrow(function(){filter.setLocale()}, 'Error', 'Verified setLocale does not throw error with empty params'); filter.setLocale(); var dict = filter.getDictionary(); - assert.equal(dict.length, en_words.length, 'Verified that without params setLocale inits dictionary as en-base') + assert.equal(dict.length, en_words.length, 'Verified that without params setLocale inits dictionary as en') }); it('Should return an empty array when setLocale does not set the dictionary', function(){ - + assert.throws(function(){filter.setLocale(10)}, "Input to locale should be an array. Eg. ['fr']"); var dict = filter.getDictionary(); assert.equal(dict.length, 0, 'Verified that dictionary is empty when setLocale throws error or is not called correctly'); @@ -122,7 +119,7 @@ describe('#addWords tests', function(){ }); describe('#removeWords test', function(){ - + it('Should remove word if it finds one from the dictionary', function(){ filter.setLocale(); filter.addWords(["itsawonderfullife"]) @@ -132,13 +129,13 @@ describe('#removeWords test', function(){ dict = filter.getDictionary(); assert.notInclude(dict, "itsawonderfullife", "Verified that the said word has been removed from dictionary") }); - + it('Should do nothing to remove word if nothing is passed', function(){ filter.setLocale(); var oriDict = filter.getDictionary(); assert.doesNotThrow(function(){filter.removeWords()}, 'Error', 'removeWords does nothing with no params are passed to it'); var dict = filter.getDictionary(); - assert.equal(oriDict.length, dict.length, 'Verified the removeWords does nothing when no params are passed'); + assert.equal(oriDict.length, dict.length, 'Verified the removeWords does nothing when no params are passed'); }); it('Should do nothing to remove word if it does not find one from the dictionary', function(){ @@ -146,7 +143,7 @@ describe('#removeWords test', function(){ var oriDict = filter.getDictionary(); assert.doesNotThrow(function(){filter.removeWords("jaimaharashtra")}, 'Error', 'removeWords does nothing with no params are passed to it'); var dict = filter.getDictionary(); - assert.equal(oriDict.length, dict.length, 'Verified the removeWords does nothing when no params are passed'); + assert.equal(oriDict.length, dict.length, 'Verified the removeWords does nothing when no params are passed'); }); }); diff --git a/test/unit/lib/metadata.js b/test/unit/lib/metadata.js index 753502f..544b20d 100644 --- a/test/unit/lib/metadata.js +++ b/test/unit/lib/metadata.js @@ -2,10 +2,10 @@ var assert = require('chai').assert; var meta = require('../../../lib/metadata.js'); describe('#getSupportedLocales test', function(){ - + it('Should return a list of valid locales', function(){ - + var validLocales = meta.getSupportedLocales(); - assert.include(validLocales, 'en-base', 'Verified that valid locales are obtained correctly'); + assert.include(validLocales, 'en', 'Verified that valid locales are obtained correctly'); }); }); diff --git a/test/unit/lib/sanitizer.js b/test/unit/lib/sanitizer.js index 79476c2..a978f07 100644 --- a/test/unit/lib/sanitizer.js +++ b/test/unit/lib/sanitizer.js @@ -8,29 +8,29 @@ describe('#sanitizeLocales test', function(){ assert.throws(function(){ sanitizer.sanitizeLocales('muchwow') }, "Input to locale should be an array. Eg. ['fr']", 'Verified error is thrown'); - + assert.throws(function(){ sanitizer.sanitizeLocales(10) }, "Input to locale should be an array. Eg. ['fr']", 'Verified error is thrown'); }); - it('Should default to locale en-base when no localeArray is passed as input', function(){ + it('Should default to locale en when no localeArray is passed as input', function(){ var loc = sanitizer.sanitizeLocales(); - assert.deepEqual(loc, ['en-base'], 'Verified that without input locale defaults to en-base'); + assert.deepEqual(loc, ['en'], 'Verified that without input locale defaults to en'); }); - - it('Should default to locale en-base when empty localeArray is passed as input', function(){ + + it('Should default to locale en when empty localeArray is passed as input', function(){ var loc = sanitizer.sanitizeLocales([]); - assert.deepEqual(loc, ['en-base'], 'Verified that with empty input locale defaults to en-base'); + assert.deepEqual(loc, ['en'], 'Verified that with empty input locale defaults to en'); }); - + it('Should correct locales when valid localeArray is passed as input', function(){ var loc = sanitizer.sanitizeLocales(['fr', 'it']); - assert.deepEqual(loc, ['fr', 'it'], 'Verified that with empty input locale defaults to en-base'); + assert.deepEqual(loc, ['fr', 'it'], 'Verified that with empty input locale defaults to en'); }); - + it('Should throw error if valid locales is passed in the array input', function(){ - + assert.throws(function(){ sanitizer.sanitizeLocales([100]) }, "Invalid locale supplied to setLocale function. Please supply valid locales including", 'Verified error is thrown'); @@ -38,13 +38,13 @@ describe('#sanitizeLocales test', function(){ }); describe('#sanitizeInputWordArray test', function(){ - + it('Should an error if input word array is undefined', function(){ assert.throws(function(){ sanitizer.sanitizeInputWordArray() }, "Input word array should be of a type array. Eg. ['a', 'man']", 'Verified error is thrown'); }); - + it('Should an error if input word array is of invalid type - string', function(){ assert.throws(function(){ sanitizer.sanitizeInputWordArray('invalidWord') @@ -56,7 +56,7 @@ describe('#sanitizeInputWordArray test', function(){ sanitizer.sanitizeInputWordArray(200) }, "Input word array should be of a type array. Eg. ['a', 'man']", 'Verified error is thrown'); }); - + it('Should return back the array if valid word array is passed', function(){ var inputArr = ['badword', 'morebadwords']; var out = sanitizer.sanitizeInputWordArray(inputArr); @@ -73,7 +73,7 @@ describe('#sanitizeInputWordArray test', function(){ describe('#sanitizeReplacementPattern test', function(){ before(function(){ - validPatterns = ['character', 'grawlix', 'word']; + validPatterns = ['character', 'grawlix', 'word']; }); it('Should not throw an error when replacementPattern is word and correct replacementWord is passed', function(){ @@ -85,7 +85,7 @@ describe('#sanitizeReplacementPattern test', function(){ assert.doesNotThrow(function(){ sanitizer.sanitizeReplacementPattern(input) }, 'Error', 'Verified that with valid pattern of word and valid word BLEEP no error is thrown'); - + }); it('Should not throw an error when replacementPattern is character and correct replacementWord is passed', function(){ @@ -94,11 +94,11 @@ describe('#sanitizeReplacementPattern test', function(){ input.replacementPattern = 'character'; input.replacementWord = '*'; input.validPatterns = validPatterns; - + assert.doesNotThrow(function(){ sanitizer.sanitizeReplacementPattern(input) }, 'Error', 'Verified that with valid pattern of word and valid word * no error is thrown'); - + }); it('Should not throw an error when replacementPattern is grawlix and no replacementWord is passed', function(){ @@ -107,24 +107,24 @@ describe('#sanitizeReplacementPattern test', function(){ input.replacementPattern = 'grawlix'; input.replacementWord = '*'; input.validPatterns = validPatterns; - + assert.doesNotThrow(function(){ sanitizer.sanitizeReplacementPattern(input) }, 'Error', 'Verified that with valid pattern of grawlix and no word is passed no error is thrown'); - + }); - + it('Should throw an error when replacementPattern is incorrect', function(){ var input = {}; input.replacementPattern = 'muchwowr'; input.replacementWord = 'BLEEP'; input.validPatterns = validPatterns; - + assert.throws(function(){ sanitizer.sanitizeReplacementPattern(input) }, 'Invalid replacement pattern passed. Please pass one of the following : '); - + }); it('Should not throw an error when replacementPattern is grawlix and no replacementWord is passed', function(){ @@ -132,11 +132,11 @@ describe('#sanitizeReplacementPattern test', function(){ var input = {}; input.replacementPattern = 'grawlix'; input.validPatterns = validPatterns; - + assert.doesNotThrow(function(){ sanitizer.sanitizeReplacementPattern(input) }, 'For replacement patterns of character and word, replacement word is mandotory. Pleace pass a replacement word'); - + }); it('Should default to character and star when replacementPattern and word are not passed', function(){ @@ -144,18 +144,18 @@ describe('#sanitizeReplacementPattern test', function(){ input.replacementPattern; input.replacementWord; input.validPatterns = validPatterns; - + var ret = sanitizer.sanitizeReplacementPattern(input); assert.equal(ret.pattern, 'character', 'Verified that default pattern becomes character'); assert.equal(ret.word, '*', 'Verified that default word becomes *'); }); - + it('Should default word to star when replacementPattern is charachter and no word', function(){ var input = {}; input.replacementPattern = 'word'; input.replacementWord; input.validPatterns = validPatterns; - + var ret = sanitizer.sanitizeReplacementPattern(input); assert.equal(ret.pattern, 'word', 'Verified that default pattern becomes character'); assert.equal(ret.word, 'BLEEP', 'Verified that default word becomes *');