common-words
Updated list (JSON) of the 100 most common words in the English language. Useful for excluding these words from arrays.
Last updated 11 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install common-words 
SYNC missed versions from official npm registry.

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 https://en.wikipedia.org/wiki/Most_common_words_in_English

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.

Current Tags

  • 0.1.3                                ...           latest (11 years ago)

4 Versions

  • 0.1.3                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE