an-array-of-english-words

An array of ~275,000 English words derived from the Letterpress word list. Works with Node and Browserify.

Github stars Tracking Chart

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

Overview

Name With Ownerwords/an-array-of-english-words
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
Release Count8
Last Release Name2.0.0 (Posted on )
First Release Namev1.0.1 (Posted on 2015-03-26 19:00:53)
Created At2014-09-02 01:49:29
Pushed At2023-12-24 17:47:06
Last Commit At2020-02-13 09:29:15
Stargazers Count205
Watchers Count9
Fork Count39
Commits Count22
Has Issues Enabled
Issues Count4
Issue Open Count2
Pull Requests Count7
Pull Requests Open Count0
Pull Requests Close Count2
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top