JSPM

  • Created
  • Published
  • Downloads 187950
  • Score
    100M100P100Q180495F
  • License MIT

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

Package Exports

  • stopword

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stopword) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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: da, en, es, fa, fr, it, ja, nl, no, pl, pt, ru, sv, 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.