Neutral Point Measurement
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

is-stopword

1.1.0 • Public • Published

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)

install

npm i is-stopword

Downloadsweekly downloads

3

version

1.1.0

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability