english-words README

The project's README from github.com/dwyl/english-words. As one markdown file: README.md.

List Of English Words

A text file containing over 466k English words.

While searching for a list of english words (for an auto-complete tutorial) I found: https://stackoverflow.com/questions/2213607/how-to-get-english-language-word-database which refers to https://www.infochimps.com/datasets/word-list-350000-simple-english-words-excel-readable (archived).

No idea why infochimps put the word list inside an excel (.xls) file.

I pulled out the words into a simple new-line-delimited text file. Which is more useful when building apps or importing into databases etc.

Copyright still belongs to them.

Files you may be interested in:

See read_english_dictionary.py for example usage.

english-words (dwyl/english-words)

Searching Database…

这是什么?一个收录英文单词的文本文件——README 里说超过 46.6 万个词,仓库描述里写的是 47.9 万个——发布出来供词典类和单词类项目使用,比如自动补全和自动建议。
它是需要安装的库,还是只是数据文件?只是需要下载的数据文件:words.txt 包含全部单词,wordsalpha.txt 只含纯字母单词,wordsdictionary.json 则是以 JSON 格式提供的同一份列表。
在项目里怎么用它?下载你需要的文件,然后每行一个单词地读取。在 Python 里可以把 wordsdictionary.json 加载成字典,每个单词都映射为 1,这样查找更快,readenglishdictionary.py 就是示例。
用它需要安装 Python 或其他东西吗?不需要——纯文本和 JSON 用任何语言都能读取。Python 是可选的:README 提到在 Python 里加载这个 JSON 词典可以获得更快的性能。
这份单词表本身有什么坑吗?words.txt 并非纯字母——里面可能出现带数字或符号的条目——所以如果你只要纯字母单词,请改用 wordsalpha.txt。它是一份静态列表,没有 API。
我可以在自己的项目里随意使用这份单词表吗?可以——该仓库采用 Unlicense(公共领域奉献),不过这些单词提取自 infochimps 的列表,其版权仍归 infochimps 所有。
这份单词表是怎么来的?作者在写一个自动补全教程时需要单词,发现 infochimps 的列表锁在一个 Excel(.xls)文件里,于是把单词提取出来,做成了这种按换行分隔、更容易导入应用和数据库的简单文本文件。
我可以用它做什么?任何需要英文词汇的东西:自动补全或自动建议功能、查询词典,或者给数据库填充初始数据。之所以选择纯文本格式,正是因为在开发应用或导入数据库时它更好用。
这份列表有多新?它一直在增长:README 里仍写着超过 46.6 万个词,而仓库描述现在宣传的是 47.9 万。这个项目可以追溯到 2014 年,没有记录任何更新计划。
Creator
dwyl
Size
27.6 MB
Stars
12.3K
Updated
CommitJan 06
Age
12y
Commits · 90 Days