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
所有者活动
創建於2014-09-02 01:49:29
推送於2023-12-24 17:47:06
最后一次提交2020-02-13 09:29:15
發布數8
最新版本名稱2.0.0 (發布於 )
第一版名稱v1.0.1 (發布於 2015-03-26 19:00:53)
用户参与
星數226
關注者數7
派生數39
提交數22
已啟用問題?
問題數6
打開的問題數2
拉請求數7
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?