Socket
Socket
Sign inDemoInstall

lemmer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lemmer - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

28

index.js

@@ -16,15 +16,19 @@ var async = require("async");

wordnet.validForms(input, function(results) {
if (results && results.length !== 0) {
for (i = 0; i < results.length; i++ ) {
_ref = results[i].split('#');
word = _ref[0];
wordforms.push(word);
if (/^[a-z]/i.test(input)) {
wordnet.validForms(input, function(results) {
if (results && results.length !== 0) {
for (i = 0; i < results.length; i++ ) {
_ref = results[i].split('#');
word = _ref[0];
wordforms.push(word);
}
next(null, reducer(_.uniq(wordforms)));
} else {
next(null, [input]);
}
next(null, reducer(_.uniq(wordforms)));
} else {
next(null, [input]);
}
});
});
} else {
next(null, [input]);
}
};

@@ -31,0 +35,0 @@

{
"name": "lemmer",
"version": "0.1.4",
"version": "0.1.5",
"description": "Wordnet Lemmer",

@@ -10,8 +10,3 @@ "main": "index.js",

"author": "Rob Ellis",
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/silentrob/lemmer/master/LICENSE"
}
],
"license": "MIT",
"dependencies": {

@@ -24,2 +19,9 @@ "WNdb": "3.1.1",

},
"repository": {
"type": "git",
"url": "git+https://github.com/silentrob/lemmer.git"
},
"bugs": {
"url": "https://github.com/silentrob/lemmer/issues"
},
"devDependencies": {

@@ -26,0 +28,0 @@ "mocha": "2.2.3",

@@ -24,2 +24,9 @@ var mocha = require("mocha");

it("undef", function(done) {
Lem.lemmatize('__something__', function(err, res) {
console.log(err, res);
done();
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc