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

wink-nlp-utils

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wink-nlp-utils - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

14

package.json
{
"name": "wink-nlp-utils",
"version": "1.5.0",
"version": "1.6.0",
"description": "Natural Language Processing Utilities that let you tokenize, stem, phonetize, create ngrams, bag of words and more.",

@@ -37,10 +37,10 @@ "keywords": [

"devDependencies": {
"chai": "^4.1.1",
"coveralls": "^2.11.15",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"docco": "^0.7.0",
"eslint": "^4.4.1",
"eslint": "^4.8.0",
"istanbul": "^0.4.5",
"jshint": "^2.9.4",
"mocha": "^3.1.0",
"mocha-lcov-reporter": "^1.2.0"
"jshint": "^2.9.5",
"mocha": "^4.0.1",
"mocha-lcov-reporter": "^1.3.0"
},

@@ -47,0 +47,0 @@ "dependencies": {

@@ -202,2 +202,7 @@

#### soundex( t )
Generates the [soundex](https://en.wikipedia.org/wiki/Soundex) code from the input array of tokens `t`. This is not to be confused with `string.soundex( s )` for string only soundex code generation.
#### set( t )

@@ -204,0 +209,0 @@

@@ -637,3 +637,3 @@ // wink-nlp-utils

// Stems the input token `t` using `string.stem()`.
// Phonetize the input tokens `t` using an algorithmic adaption of Metaphone.
prepare.tokens.phonetize = function ( t ) {

@@ -643,2 +643,10 @@ return t.map( prepare.string.phonetize );

// #### soundex
// Produces the soundex code from the input `word`.
prepare.tokens.soundex = function ( tokens ) {
// Need to send `maxLength` as `undefined`.
return tokens.map( ( t ) => prepare.string.soundex( t ) );
}; // soundex()
// #### Remove Words

@@ -645,0 +653,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