an-array-of-english-words

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

Github星跟踪图

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

概览

名称与所有者words/an-array-of-english-words
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
发布数8
最新版本名称2.0.0 (发布于 )
第一版名称v1.0.1 (发布于 2015-03-26 19:00:53)
创建于2014-09-02 01:49:29
推送于2023-12-24 17:47:06
最后一次提交2020-02-13 09:29:15
星数206
关注者数9
派生数39
提交数22
已启用问题?
问题数4
打开的问题数2
拉请求数7
打开的拉请求数0
关闭的拉请求数2
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部