is-stopword

v1.1.0
To check if a word is stopword in English
english stopword language nlp util

is-stopword

To check if a word is stopword in English

NPM Build Status Coverage Status

Usage

var {
  isStopword,
  getStopwords
} = require('is-stopword');

isStopword('accordingly'); // --> true, because "accordingly" is stopword
isStopword('algolia'); // --> false, because "algolia" is not a stopword

getStopwords(); // --> return an array of the stopwords

API reference

.isStopword(String word)

Return a boolean.

.getStopwords()

Return an array of the stopwords come from ranks.nl.

FYI

Stop Words are words which do not contain important significance to be used in Search Queries. Usually these words are filtered out from search queries because they return vast amount of unnecessary information.

Test

git clone https://github.com/ndaidong/is-stopword.git
cd is-stopword
npm install
npm test

License

The MIT License (MIT)

npm i is-stopword

Metadata

  • MIT
  • >= 8.0
  • @ndaidong
  • released 10/4/2018

Downloads

Maintainers