Skip to content

AvonleaFisher/NYT-Spelling-Bee-Solver-Function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NYT-Spelling-Bee-Solver-Function

A function to return valid words to solve the NYT Spelling Bee puzzle

Author: Avonlea Fisher

Blog Post: Solving the New York Times Spelling Bee Puzzle in Python, published in Towards Data Science

About

The contents of this repository comprise a program to automatically solve the New York Times Spelling Bee given a set of constraints defined by the puzzle. A puzzle contains seven letters in a 'hive,' including a 'center letter.' In the below example puzzle, the center letter is 'L.' The goal is to create the maximum number of words that must contain the center letter and may only contain letters within the hive (repeats are allowed). Valid words must be relatively common and at least four letters long. In the puzzle below, 'alfalfa' would be an example of a valid word, while 'can' would be invalid (too short, no center letter).

Image of the January 11th, 2021 New York Times Spelling Bee puzzle

Repository Files

Limitations

The text file contains a non-exhaustive set of words, which means that some words that are valid for a Spelling Bee puzzle may not appear in the solver's output. Additionally, not all of the output words will be valid entries for the puzzle. The puzzles are curated to exclude highly obscure words, which are not systematically excluded by the solver.

For Further Information

Please contact me at fisheravonlea@gmail.com or via my LinkedIn profile.

About

A function to return valid words to solve the NYT Spelling Bee puzzle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published