Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find dictionary words for a Spelling Bee puzzle
ResourceFunction["SpellingBeeSolve"]["letters"] finds words that contain the first letter in letters and use only letters from letters. |
| "MinimumLength" | 4 | positive integer minimum number of letters in returned words |
| "PangramsOnly" | False | whether to return only words using every allowed letter at least once |
| "WordList" | Automatic | Automatic or a list of strings to search; Automatic uses DictionaryLookup |
| IgnoreCase | True | whether to treat uppercase and lowercase letters as equivalent |
Solve a typical Spelling Bee puzzle, with the "a" being required:
| In[1]:= |
| Out[1]= | ![]() |
Find words from a small sample word list, where the "a" is required:
| In[2]:= |
| Out[2]= |
List only the longer solutions:
| In[3]:= |
| Out[3]= |
Non-letter characters are ignored before choosing the center letter and allowed letters:
| In[4]:= |
| Out[4]= |
Count the number of candidate words for a puzzle:
| In[5]:= |
| Out[5]= |
Make a picture of a sample puzzle:
| In[6]:= | ![]() |
| Out[8]= | ![]() |
Solve the puzzle:
| In[9]:= |
| Out[9]= | ![]() |
Use "MinimumLength" to include shorter words:
| In[10]:= |
| Out[10]= |
Use "PangramsOnly" to keep only words that use every allowed letter:
| In[11]:= |
| Out[11]= |
The first extracted letter is always required:
| In[12]:= |
| Out[12]= |
Inputs with no letters return a Failure object:
| In[13]:= |
| Out[13]= |
Results depend on the dictionary or word list used:
| In[14]:= |
| Out[14]= |
Group candidate words by length:
| In[15]:= |
| Out[15]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License