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

stopword

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stopword - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

8

package.json
{
"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

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