JSPM

an-array-of-english-words

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2485
  • Score
    100M100P100Q120030F
  • License MIT

List of ~275,000 English words

Package Exports

  • an-array-of-english-words
  • an-array-of-english-words/index.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (an-array-of-english-words) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

an-array-of-english-words

Build Downloads Size

List of ~275,000 English words. Derived from the Letterpress word list.

Install

npm:

npm install an-array-of-english-words

Use

var words = require('an-array-of-english-words')

console.log(words.filter(d => /fun/.test(d)))

Yields:

[
  'antifungal',
  'antifungals',
  'bifunctional',
  'cofunction',
  'cofunctions',
  // …and many more
]

API

anArrayOfEnglishWords

Array.<string> — List of all English words, lowercased.

CLI

Install the CLI globally:

npm i -g an-array-of-english-words

Now run words to print all the words to stdout:

words

Use grep to filter by pattern:

words | grep cheese

Use egrep to filter with regular expressions:

words | egrep '^fun'            # start with 'fun'
words | egrep 'ification$'      # end with 'ification'
words | egrep 'ou?r$'           # end in 'or' or 'our'

Use wc to find out how many monkey words there are:

words | grep monkey | wc -l

Ten random ten-letter words (note: on macOS, do brew install coreutils to get gshuf):

$ words | egrep '^.{10}$' | gshuf | head -10

License

MIT © Zeke Sikelianos