isprofanity
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -72,2 +72,2 @@ fs = require('fs'); | ||
exports = isProfanity; | ||
module.exports = isProfanity; |
{ | ||
"name": "isprofanity", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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", |
@@ -13,3 +13,3 @@ # isProfanity | ||
```javascript | ||
isProfanity(s,function(t){ | ||
isprofanity(s,function(t){ | ||
// t will equal true if it contains a swear word and false if not | ||
@@ -24,3 +24,3 @@ }); | ||
isProfanity(s ,function(t){ | ||
isprofanity(s ,function(t){ | ||
b = t ? 'contains' : 'does not contain'; | ||
@@ -35,3 +35,3 @@ console.log('"'+s+'" '+b+' profanity'); | ||
```javascript | ||
isProfanity(s,function(t){ | ||
isprofanity(s,function(t){ | ||
// t will equal true if it contains a swear word and false if not | ||
@@ -38,0 +38,0 @@ },'data/profanity.csv','data/exceptions.csv'); |
8004