Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-nlp

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-nlp - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

types/index.d.ts

5

package.json

@@ -8,3 +8,3 @@ {

],
"version": "0.1.7",
"version": "0.1.8",
"homepage": "https://github.com/vleandersson/simple-nlp",

@@ -20,5 +20,8 @@ "license": "MIT",

"index.js",
"index.d.ts",
"types/",
"umd/"
],
"main": "index.js",
"types": "index.d.ts",
"engines": {

@@ -25,0 +28,0 @@ "node": ">=0.10.0"

2

umd/simple-nlp.production.min.js

@@ -1,1 +0,1 @@

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e){return e.replace(/[^aeiouy]+y/g,"CV").replace(/[aeiou]+/g,"V").replace(/[^V]+/g,"C")}function i(e){return e.replace(/[^aeiouy]y/g,"CV").replace(/[aeiou]/g,"V").replace(/[^V]/g,"C")}function u(e){return e?r(e).replace(/^C/,"").replace(/V$/,"").length/2:-1}function l(e,t,n,r){var i=null;return"string"==typeof t&&e.substr(0-t.length)==t?i=e.replace(new RegExp(t+"$"),n):t instanceof RegExp&&e.match(t)&&(i=e.replace(t,n)),i&&r?r(i):i}function a(e,t,n){for(var r=e,i=0;i<t.length;i++)(null===n||u(l(e,t[i][0],t[i][1]))>n)&&(r=l(r,t[i][0],t[i][2])||r);return r}function o(e,t,n){return a(e,t,n)||e}function c(e,t,n,r){var i="";if(t.test(e)){var l=t.exec(e);n.forEach((function(e){i+=l[e]}))}return u(i)>r?i:null}n.r(t);var s=function(e){return e.length<3?e:function(e){return u(e)>1?e.replace(/ll$/,"l"):e}(function(e){var t=u(e.replace(/e$/,""));return(t>1||1==t&&("CVC"!=i(e).substr(-4,3)||!e.match(/[^wxy].$/)))&&(e=e.replace(/e$/,"")),e}(function(e){return c(e,/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,[1],1)||c(e,/^(.+?)(s|t)(ion)$/,[1,2],1)||e}(function(e){return o(e,[["icate","","ic"],["ative","",""],["alize","","al"],["iciti","","ic"],["ical","","ic"],["ful","",""],["ness","",""]],0)}(function(e){return e=o(e,[["ational","","ate"],["tional","","tion"],["enci","","ence"],["anci","","ance"],["izer","","ize"],["abli","","able"],["bli","","ble"],["alli","","al"],["entli","","ent"],["eli","","e"],["ousli","","ous"],["ization","","ize"],["ation","","ate"],["ator","","ate"],["alism","","al"],["iveness","","ive"],["fulness","","ful"],["ousness","","ous"],["aliti","","al"],["iviti","","ive"],["biliti","","ble"],["logi","","log"]],0)}(function(e){var t=r(e);return"y"==e.substr(-1)&&t.substr(0,t.length-1).indexOf("V")>-1?e.replace(/y$/,"i"):e}(function(e){if("eed"==e.substr(-3)){if(u(e.substr(0,e.length-3))>0)return e.replace(/eed$/,"ee")}else{var t=l(e,/(ed|ing)$/,"",(function(e){return r(e).indexOf("V")>=0?(t=a(e,[["at","","ate"],["bl","","ble"],["iz","","ize"]]))!=e?t:function(e){return e.match(/([^aeiou])\1$/)}(e)&&e.match(/[^lsz]$/)?e.replace(/([^aeiou])\1$/,"$1"):1==u(e)&&"CVC"==i(e).substr(-3)&&e.match(/[^wxy]$/)?e+"e":e:null}));if(t)return t}return e}(function(e){return e.match(/(ss|i)es$/)?e.replace(/(ss|i)es$/,"$1"):"s"==e.substr(-1)&&"s"!=e.substr(-2,1)&&e.length>2?e.replace(/s?$/,""):e}(e.toLowerCase())))))))).toString()};n.d(t,"porterStemFn",(function(){return s}))}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e){return e.replace(/[^aeiouy]+y/g,"CV").replace(/[aeiou]+/g,"V").replace(/[^V]+/g,"C")}function i(e){return e.replace(/[^aeiouy]y/g,"CV").replace(/[aeiou]/g,"V").replace(/[^V]/g,"C")}function u(e){return e?r(e).replace(/^C/,"").replace(/V$/,"").length/2:-1}function l(e,t,n,r){var i=null;return"string"==typeof t&&e.substr(0-t.length)==t?i=e.replace(new RegExp(t+"$"),n):t instanceof RegExp&&e.match(t)&&(i=e.replace(t,n)),i&&r?r(i):i}function a(e,t,n){for(var r=e,i=0;i<t.length;i++)(null===n||n&&u(l(e,t[i][0],t[i][1]))>n)&&(r=l(r,t[i][0],t[i][2])||r);return r}function o(e,t,n){return a(e,t,n)||e}function c(e,t,n,r){var i="";if(t.test(e)){var l=t.exec(e);null!==l&&n.forEach((function(e){i+=l[e]}))}return u(i)>r?i:null}n.r(t);var s=function(e){return e.length<3?e:function(e){return u(e)>1?e.replace(/ll$/,"l"):e}(function(e){var t=u(e.replace(/e$/,""));return(t>1||1==t&&("CVC"!=i(e).substr(-4,3)||!e.match(/[^wxy].$/)))&&(e=e.replace(/e$/,"")),e}(function(e){return c(e,/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,[1],1)||c(e,/^(.+?)(s|t)(ion)$/,[1,2],1)||e}(function(e){return o(e,[["icate","","ic"],["ative","",""],["alize","","al"],["iciti","","ic"],["ical","","ic"],["ful","",""],["ness","",""]],0)}(function(e){return e=o(e,[["ational","","ate"],["tional","","tion"],["enci","","ence"],["anci","","ance"],["izer","","ize"],["abli","","able"],["bli","","ble"],["alli","","al"],["entli","","ent"],["eli","","e"],["ousli","","ous"],["ization","","ize"],["ation","","ate"],["ator","","ate"],["alism","","al"],["iveness","","ive"],["fulness","","ful"],["ousness","","ous"],["aliti","","al"],["iviti","","ive"],["biliti","","ble"],["logi","","log"]],0)}(function(e){var t=r(e);return"y"==e.substr(-1)&&t.substr(0,t.length-1).indexOf("V")>-1?e.replace(/y$/,"i"):e}(function(e){if("eed"==e.substr(-3)){if(u(e.substr(0,e.length-3))>0)return e.replace(/eed$/,"ee")}else{var t=l(e,/(ed|ing)$/,"",(function(e){return r(e).indexOf("V")>=0?(t=a(e,[["at","","ate"],["bl","","ble"],["iz","","ize"]]))!=e?t:function(e){return e.match(/([^aeiou])\1$/)}(e)&&e.match(/[^lsz]$/)?e.replace(/([^aeiou])\1$/,"$1"):1==u(e)&&"CVC"==i(e).substr(-3)&&e.match(/[^wxy]$/)?e+"e":e:null}));if(t)return t}return e}(function(e){return e.match(/(ss|i)es$/)?e.replace(/(ss|i)es$/,"$1"):"s"==e.substr(-1)&&"s"!=e.substr(-2,1)&&e.length>2?e.replace(/s?$/,""):e}(e.toLowerCase())))))))).toString()};n.d(t,"porterStemFn",(function(){return s}))}]);
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