is-stopword
v1.1.0 english stopword language nlp util
is-stopword
To check if a word is stopword in English
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)