프로젝트
GitHub에서 보기
words/an-array-of-english-words
소개
List of ~275,000 English words
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalan-array-of-english-words
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
Related
License
관련 프로젝트 살펴보기
불러오는 중…