I wrote this program in May of 2019 to cheat, uh, to help me solve what was then a new New York Times puzzle called “Spelling Bee.” I’m good at crossword puzzles, but not good at generating words from a random collection of letters, which I guess is called a “jumble.”
I wrote a pretty long blog post about this, so I won’t belabor it here. You don’t need to read the whole thing to get the gist of it. The question of what dictionary you use turns out to be quite complicated.
And this link will take you straight to the program.