wonderwords
Generate random english words and phrases.
What it is and what it does
Wonderwords is a pure-Python library for generating random English words and sentences. It provides a RandomWord class for generating individual words with optional filters (length, starting/ending patterns, part of speech, regex matching) and a RandomSentence class for generating structured random sentences. The package includes a command-line interface for quick generation without writing code.
The library has no external runtime dependencies and supports Python 3.8 through 3.12. It's useful for test data generation, placeholder text, creative writing tools, or any application needing randomized English vocabulary. The API is straightforward—instantiate a class and call methods with optional filter parameters—and the documentation is comprehensive.
Use it for:
- Generate test data and fixtures for unit tests without hardcoding specific word values.
- Create placeholder or dummy text in applications during development or prototyping.
- Build word games, puzzles, or educational tools that need randomized vocabulary.
- Populate database seeds or sample datasets with realistic English words.
- Generate random prompts or creative writing seeds for brainstorming tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates random English words and sentences with filtering options (by length, starting/ending characters, part of speech, or regex), plus a command-line interface for quick generation.
Yes. The package is stable, dependency-free, well-documented, and solves a straightforward problem with a clean API. The aging maintenance status (288 days since last release) is not a blocker for a mature utility package with no known vulnerabilities. Install it if you need random word or sentence generation; the low friction and permissive license make it a safe choice.
Install
wonderwords on PyPI
pip
pip install wonderwordsuv
uv add wonderwordspoetry
poetry add wonderwordsInstalling wonderwords
Before you install
Low friction install with no runtime dependencies. Maintenance status is aging—last release was 288 days ago—but the repository remains active and the package is marked Production/Stable.
License in practice
MIT License permits unrestricted use, modification, and distribution with only attribution and liability disclaimer required. No restrictions on commercial or private use.
Quickstart
pip install wonderwords
from wonderwords import RandomWord
r = RandomWord()
print(r.word())
print(r.word(starts_with="a", word_max_length=8))
print(r.random_words(3, include_parts_of_speech=["nouns"]))
Verify before relying
- Whether the word list is comprehensive enough for production use cases requiring specialized vocabulary domains.
- Performance characteristics when filtering against very large result sets or complex regex patterns.
- Whether custom word lists can be loaded from external sources or must be defined in code.
Package facts
| License | MIT License Copyright (c) 2020 Maxim Rebguns Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 288 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 632,486/month — #5,650 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: wonderwords-3.0.1-py3-none-any.whl
Keywords: random, English
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
english-wordsProvides curated sets of English words from…
permissive · top 15,000 on PyPI
random-slugsGenerates random word-based slugs with…
unclear · top 15,000 on PyPI
randomnameGenerates random memorable identifiers by…
permissive · top 5,000 on PyPI
haikunatorGenerates random Heroku-style names composed of…
permissive · top 15,000 on PyPI
petnameGenerates random, pronounceable names by…
permissive · top 15,000 on PyPI
xkcdpassGenerates strong, memorable passphrases by…
permissive · top 15,000 on PyPI
random-password-generatorGenerates random passwords with configurable…
permissive · top 15,000 on PyPI
friendlywordsGenerates random human-readable strings from…
permissive · top 15,000 on PyPI
lorem-textGenerates dummy lorem ipsum text (sentences,…
permissive · top 15,000 on PyPI
dicewarediceware generates memorable passphrases by…
copyleft · top 5,000 on PyPI