30,000 most common English words with Chinese dictionary explanations in order of frequency.
This repo contains a list of the 30,000 most common English words in order of frequency, derived from Peter Norvig's compilation of the 1/3 million most frequent English words.
I added dictionary explanation(resources from youdao) for every word in the list.
Register on youdao, then apply for a appKey and secret.
Modify the value of appKey and secret variables in the index.js:
const appKey = 'example-Key'
const secret = 'example-secret'
(Optional) Modify the function, processDataCb, to get whatever you want from youdao's response. (The phonetic
and explains
fields are selected by default)
Run:
cat 30k.txt | node index.js | tee result.txt
Enjoy!