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.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 @@ },

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