Skip to main content

wordle-words

App to generate an array of 5-letter words all with unique letters, to propose efficient narrowing of qualifying words for Wordle game.

Main Word Generator

The core functionality generates sets of 5-letter words where no letter appears in multiple words. This is perfect for Wordle strategy as it maximizes letter coverage.

Usage

Run from the project root directory:

# Generate default number of words (attempts 3, but may find fewer)
ww

# Generate specific number of words
ww 2
ww 4
ww 5

# Generate words with no repeating letters
ww 3 -u
ww -u

Examples

$ ww 3
Selected words: ['clack', 'biter', 'found']
Used letters: ABCDEF__I_KL_NO__R_TU_____

$ ww 4
Selected words: ['squad', 'glory', 'mimic', 'theft']
Used letters: A_CDEFGHI__LM_O_QRSTU___Y_

$ ww
Selected words: ['regal', 'couch', 'ditty']
Used letters: A_CDE_GHI__L__O__R_TU___Y_

$ ww 4 -u
Selected words: ['frail', 'wench', 'judgy', 'stomp']
Used letters: A_CDEFGHIJ_LMNOP_RSTU_W_Y_

$ ww 2 -u
Selected words: ['mango', 'build']
Used letters: AB_D__G_I__LMNO_____U_____

$ ww -u
Selected words: ['clean', 'ivory', 'thump']
Used letters: A_C_E__HI__LMNOP_R_TUV__Y_

How It Works

  1. Samples the word list randomly for variety
  2. Selects words with no overlapping letters
  3. Stops when the requested number is reached or no more qualifying words exist
  4. Displays the selected words and all unique letters used (sorted a-z)

Wordle Strategy Benefits

  • Maximum letter coverage - Each word introduces different letters
  • Efficient elimination - Quickly narrow down possible answers
  • Alphabet scanning - Sorted letter output shows coverage gaps

Word List Management

This project includes command-line utilities to examine and modify the word list in words.py.

Usage

Run the utility from the project root directory:

ww [command] [options]

Available Commands

stats - Show Word List Statistics

Display comprehensive statistics about the current word list:

ww stats

Output includes:

  • Total word count
  • Number of unique words
  • Number of duplicates
  • Whether the list is alphabetically sorted

find-scarce - Find Least Common Letters

Identify the least frequently used letters in the word list:

# Find 3 least common letters (default)
ww find-scarce

# Find 5 least common letters
ww find-scarce --num 5

Use case: Helpful for Wordle strategy - these letters appear less frequently in the word list.

dedup - Clean Duplicate Words

Remove duplicate entries from the word list and update words.py:

ww dedup

⚠️ Note: This modifies the words.py file in place.

sort - Alphabetically Sort Word List

Sort the word list alphabetically and update words.py:

ww sort

⚠️ Note: This modifies the words.py file in place.

Examples

# Check current status
ww stats

# Clean up the word list
ww clean
ww dedup
ww sort

# Analyze letter frequency for Wordle strategy
ww find-scarce --num 10

Help

For detailed command options:

ww --help

Metadata

Release files for wordle-words 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wordle-words 0.4.0
File Size Uploaded Provenance Actions
wordle_words-0.4.0.tar.gz 25.6 kB Without provenance Details for wordle_words-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wordle-words 0.4.0
File Interpreter ABI Platform Actions
wordle_words-0.4.0-py3-none-any.whl Python 3 none any Details for wordle_words-0.4.0-py3-none-any.whl

Total release size: 38.3 kB

Release files / wordle_words-0.4.0.tar.gz

Download URL wordle_words-0.4.0.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
641c434b64af68912864529b2dbd2eca6f693ff298704b62a86fd15207784669
BLAKE2b-256 checksum
How to use checksums
fe43e1a6b0dac3ee66715a31ea553ef2db6412718c2599c8f719e5e31cb03cb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.25

Release files / wordle_words-0.4.0-py3-none-any.whl

Download URL wordle_words-0.4.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
091788678d43a8749523329b336c088626bc9b008c83512ddd2e41b8d951b24d
BLAKE2b-256 checksum
How to use checksums
be6d66157da480895ba39b3b5e8ac68f7f22caeb514ea732e185cdd5325407b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.25

Security for wordle-words 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page