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

stopword

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stopword

A module for node.js that takes in text and returns text that is stripped of stopwords

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
67K
decreased by-6.1%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version NPM downloads MIT License Build Status

stopword

stopword is a node module that allows you to strip stopwords from an input text. It is useful for text analysis.

API

getStopwords

Usage:

getStopwords(language)

returns and array of stopwords for the given language.

Supported languages: en, es, fa, fr, it, ja, nl, no, pl, pt, ru, zh

removeStopwords

Usage:

removeStopwords(text[, options])

Returns an Array that represents the text with the specified stopwords removed.

options (optional) is an object and can contain 0 or more of the following:

  • stopwords: an array of stopwords
  • inputSeparator: a speratator in the string.split() format used to tokenise input

Release Notes:

As of version 0.0.4, removeStopwords returns an Array, since this removes ambiguity around separators.

Keywords

FAQs

Package last updated on 15 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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