npm.io
2.0.0 • Published 6 years agoCLI

an-array-of-english-words

Licence
MIT
Version
2.0.0
Deps
0
Size
3.2 MB
Vulns
0
Weekly
0
Stars
241

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

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}


License

MIT Zeke Sikelianos

# end with 'ification' words | egrep 'ou?r

Use __INLINE_CODE_6__ to find out how many __INLINE_CODE_7__ words there are:

__CODE_BLOCK_7__

Ten random ten-letter words (note: on macOS, do __INLINE_CODE_8__ to get __INLINE_CODE_9__):

__CODE_BLOCK_8__

License

MIT Zeke Sikelianos

# end in 'or' or 'our'

Use __INLINE_CODE_6__ to find out how many __INLINE_CODE_7__ words there are:

__CODE_BLOCK_7__

Ten random ten-letter words (note: on macOS, do __INLINE_CODE_8__ to get __INLINE_CODE_9__):

__CODE_BLOCK_8__

License

MIT Zeke Sikelianos

| gshuf | head -10

License

MIT Zeke Sikelianos

# end with 'ification' words | egrep 'ou?r

Use __INLINE_CODE_6__ to find out how many __INLINE_CODE_7__ words there are:

__CODE_BLOCK_7__

Ten random ten-letter words (note: on macOS, do __INLINE_CODE_8__ to get __INLINE_CODE_9__):

__CODE_BLOCK_8__

License

MIT Zeke Sikelianos

# end in 'or' or 'our'

Use __INLINE_CODE_6__ to find out how many __INLINE_CODE_7__ words there are:

__CODE_BLOCK_7__

Ten random ten-letter words (note: on macOS, do __INLINE_CODE_8__ to get __INLINE_CODE_9__):

__CODE_BLOCK_8__

License

MIT Zeke Sikelianos

Keywords