1.1.0 • Published 6 years ago

is-stopword v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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)