Registry / data / english-words

english-words

JSON →
library2.0.2pypypi✓ verified 88d ago

A Python library to generate sets of English words by combining different word lists. Version 2.0.2 provides access to common, small, and large word sets; simple API with get_words_set().

pip install english-words
INSTALL
IMPORT
SIG · ENGLISH-WORDS
E
english-words
datapythonv2.0.2
Install
1.7s avg
Import
—
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34.3MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 35MB
32MB installed
● package 32MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_english_words_set
✓ from english_words import get_english_words_set
✗ from english_words import get_words_set

Quickly retrieve word sets.

from english_words import get_words_set # Get the default (common English words) set words = get_words_set() print(len(words)) # e.g., 2000 # Get a specific word list small = get_words_set(word_set='small') print(list(small)[:5]) # Available sets: 'common' (default), 'small', 'large'
Debug
Known issues
breakingIn version 2.0.0, the old `english_words` module (importing a set directly) was replaced with a function-based API. Direct import of `english_words.english_words` or similar patterns no longer works.
fix
Change imports to use `from english_words import get_words_set` and call the function.
affects: <2.0.0
deprecatedPassing `word_set='en'` or other non-standard names may not work; only 'common', 'small', 'large' are officially supported.
fix
Use one of the official word_set names: 'common', 'small', 'large'.
affects: all
gotchaThe returned object is a frozenset, not a list. Converting to list is required for index access or mutation.
fix
Wrap with list() if you need sequential access: `list(get_words_set())`.
affects: all
Upgrade
Version history
2.0.2latest on PyPI · released Aug 14, 2025
Audit
Dependencies
setuptoolsrequiredUsed internally for package data; should be available in standard environments.
Agent activity
4 hits · last 30 days
node
4
Resources
english-words — pip install english-words · libregistry