I created a form that lets a user entered a scrambled word (like EMURLNRASBC).
When the user clicks “Unscramble”, I unscramble the word for them:
I query the dictionary table to find all words that contain all the letters (and the proper amount of each letter) and is the proper length. So in this example, we need all words with two R’s and one of each of those other letters, and it needs to be eleven characters long.
I join this list with the Wiktionary table and find out how many definitions there are for each word.
I sort the list so the words with the most definitions are on top. This helps a little to prevent obscure words from being listed first in situations where there are several words made up of the same letters.
I display all the words that are made from the scrambled letters.
It didn’t take too long to make, and my wife made an awesome logo for it.