wink-nlp-utils
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"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 @@ |
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
84806
1037
289