JSPM

  • Created
  • Published
  • Downloads 187950
  • Score
    100M100P100Q180453F
  • 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: en, es, fa, fr, it, ja, nl, no, pl, pt, ru, zh

removeStopwords

Usage:

removeStopwords(text[, options])

Returns a string that has had the specified stopwords removed, and the seperator normalised to a specified value.

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
  • outputSeparator: a speratator in the string.join() format used to tokenise output