Comparing version 0.1.6 to 0.2.0
11
index.js
var async = require("async"); | ||
var _ = require("underscore"); | ||
var _ = require("lodash"); | ||
@@ -7,2 +7,6 @@ var WordNet = require("node-wordnet"); | ||
var isLetter = function(c) { | ||
return c.toLowerCase() != c.toUpperCase(); | ||
} | ||
var _findForms = function(input, next) { | ||
@@ -17,3 +21,3 @@ var i, wordforms = [], word, _ref, reducer; | ||
if (/^[a-z]/i.test(input)) { | ||
if (isLetter(input.charAt(0))) { | ||
wordnet.validForms(input, function(results) { | ||
@@ -26,3 +30,2 @@ if (results && results.length !== 0) { | ||
} | ||
next(null, reducer(_.uniq(wordforms))); | ||
@@ -49,5 +52,5 @@ } else { | ||
async.mapSeries(lookup, _findForms, function(err, res) { | ||
async.map(lookup, _findForms, function(err, res) { | ||
cb(null, _.flatten(res)); | ||
}); | ||
}; |
{ | ||
"name": "lemmer", | ||
"version": "0.1.6", | ||
"version": "0.2.0", | ||
"description": "Wordnet Lemmer", | ||
@@ -13,5 +13,5 @@ "main": "index.js", | ||
"WNdb": "3.1.1", | ||
"async": "0.9.0", | ||
"async": "^2.1.4", | ||
"lodash": "^4.17.2", | ||
"node-wordnet": "0.1.10", | ||
"underscore": "1.8.3", | ||
"wndb-with-exceptions": "3.0.1" | ||
@@ -18,0 +18,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4482
69
+ Addedlodash@^4.17.2
+ Addedasync@0.9.22.6.4(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedunderscore@1.8.3
- Removedasync@0.9.0(transitive)
- Removedunderscore@1.8.3(transitive)
Updatedasync@^2.1.4