Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "stopword", | ||
"version": "0.1.7", | ||
"description": "A module for node.js that takes in text and returns text that is stripped of stopwords", | ||
"version": "0.1.8", | ||
"description": "A module for node.js that takes in text and returns text that is stripped of stopwords. Has pre-defined stopword lists for 19 languages and also takes lists with custom stopwords as input.", | ||
"main": "lib/stopword.js", | ||
@@ -15,2 +15,3 @@ "scripts": { | ||
"stopword", | ||
"stopwords", | ||
"document", | ||
@@ -20,3 +21,4 @@ "processing", | ||
"norch", | ||
"search-index" | ||
"search-index", | ||
"nlp" | ||
], | ||
@@ -23,0 +25,0 @@ "devDependencies": { |
@@ -17,2 +17,3 @@ # stopword | ||
### Default (English) | ||
By default, `stopword` will strip an array of "meaningless" English words | ||
@@ -28,3 +29,4 @@ | ||
You can also specify a language other than english: | ||
### Other languages | ||
You can also specify a language other than English: | ||
```javascript | ||
@@ -38,2 +40,12 @@ sw = require('stopword') | ||
### Custom list of stopwords | ||
And last, but not least, it is possible to use your own, custom list of stopwords: | ||
```javascript | ||
sw = require('stopword') | ||
const oldString = 'you can even roll your own custom stopword list'.split(' ') | ||
// Just add your own list/array of stopwords | ||
const newString = sw.removeStopwords(oldString, [ 'even', 'a', 'custom', 'stopword', 'list', 'is', 'possible'] | ||
// newString is now [ 'you', 'can', 'roll', 'your', 'own'] | ||
``` | ||
## API | ||
@@ -61,4 +73,4 @@ | ||
* `pt` - Portuguese | ||
* `ru` - Russioan | ||
* `sv` - Sweedish | ||
* `ru` - Russian | ||
* `sv` - Swedish | ||
* `zh` - Chinese Simplified | ||
@@ -102,2 +114,4 @@ | ||
version 0.1.8 Documenting how to use custom stopword lists | ||
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat | ||
@@ -104,0 +118,0 @@ [license-url]: LICENSE |
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
69565
119