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