WORDLE Starter Word Generator

Results:

begad

cadge

decaf

fadge

Purpose

This script generates a list of words suitable for use in the Wordle game. It analyzes letter frequency in English words to identify high-quality candidate words.

Functionality

  • Fetches a comprehensive word list from GitHub
  • Scrapes previously used Wordle answers to avoid duplicates
  • Filters for five-letter words
  • Calculates letter frequency across the word list
  • Scores words based on popular letter usage
  • Eliminates anagrams to ensure variety
  • Returns high-scoring words (score ≥ 5) that haven't been used before

Key Functions

Function Description
score_word(input_word) Scores a word based on the frequency of its letters in the word list
check_anagram(word1, word2) Determines if two words are anagrams of each other
get_winners() Returns high-scoring words that aren't anagrams and haven't been used in Wordle before

Configuration

The script uses a depth variable (default: 7) to determine how many of the most frequent letters should be considered when scoring words.