isprofanity
Advanced tools
Comparing version
@@ -63,3 +63,3 @@ fs = require('fs'); | ||
x = wagnerFischer(swear.toLowerCase(),word.toLowerCase()); | ||
if(x < (swear.length-2) && exceptions.indexOf(word.toLowerCase()) === -1){ | ||
if(x < (swear.length/2) && exceptions.indexOf(word.toLowerCase()) === -1){ | ||
containsASwear = true; | ||
@@ -66,0 +66,0 @@ blockedWords.push(word); |
{ | ||
"name": "isprofanity", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A profanity checker which, unlike alternatives, uses the Wagner–Fischer algorithm in order to catch variations that you haven't thought of. ", | ||
@@ -5,0 +5,0 @@ "main": "isProfanity.js", |