common-words

Updated list (JSON) of the 100 most common words in the English language. Useful for excluding these words from arrays.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
common-words
1400.1.39 years ago9 years agoMinified + gzip package size for common-words in KB

Readme

common-words NPM version
Updated list (JSON) of the 100 most common words in the english language. Useful for excluding these words from arrays.

From commonwordsinEnglish>
Example:
[
  {
    "rank": "1",
    "word": "the"
  },
  {
    "rank": "2",
    "word": "be"
  },
  {
    "rank": "3",
    "word": "to"
  },
  ...
]

Install

Install with npm:
npm i common-words --save-dev

Usage

var common = require('common-words');

function removeCommonWords(words, common) {
  common.forEach(function(obj) {
    var word = obj.word;
    while (words.indexOf(word) !== -1) {
      words.splice(words.indexOf(word), 1);
    }
  });
  return words;
};
removeCommonWords(yourWords, common);

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license

This file was generated by verb-cli
on April 13, 2014.