A Wolfram Language facsimile of Wordle

Sure (though I prefer to keep a sense of mystery each time I do the real Wordle). Arnoud has written an blog post with some additional analysis using the ResourceFunction that contains the actual Wordle words that he scraped. Here is the link to that (posted with his permission):

Tips and Tricks for Solving Wordle Efficiently

The takeaway is, of course, that you can easily analyze strategies with the Wolfram Language and, of course, have fun doing it!

1 Like

It’s amazing how many words I don’t know.
I think some human it picking the secret words, though. Given the list of them so far, it seems to be a different dictionary than the accepted words (maybe the average of their use-frequency is statistically higher than that of other dictionaries?)

1 Like

I updated the code to catch plurals like “Zulus”. I still find that the WordList “KnownWords” dictionary does not contain, for example, some words that are conjugations of verbs. Perhaps I am not quite understanding what the restrictions on WordList[“KnownWords”] is.

In[]:= MemberQ[WordList["KnownWords"], "ate"]
Out[]= False

In[]:= MemberQ[WordList["KnownWords"], "walked"]    
Out[]= False

And I find this strange when, for example,

In[]:= WordData["ate", "PartsOfSpeech"]    
Out[]= {"Verb"}

And

In[]:= DictionaryWordQ["ate"]    
Out[]= True

BTW, I came across this issue when I was checking today’s (1/30) online word for Wordle (slight spoiler in that).

1 Like

An interesting statistics that just went viral on Reddit:

3 Likes

It seems that Wordle was just sold to the New York Times:

New York Times press release

2 Likes

I wrote a small blog post on this which you can read here:

Wordle the Wolfram Way

3 Likes

And for something else…

Worldle, not Wordle

1 Like

Another interesting Wordle implementation in Mathematica:

n-Wordle

It’s a world of Wordles!

1 Like

I used to be able to execute and play the MWordle notebook perfectly fine on 11.2, but on 13.1 I’m getting an error message when I try to evaluate the notebook. The message is:

Error: No previous context defined.

I followed the link to the error message help page, and saw something about how the function EndPackage was updated for v13. Does this mean that the MWordle.nb notebook (the one attached to David’s post) is outdated for v13?

Thanks.

I just checked loading it on 13.1 (OSX) from my local notebook (which should be the same one that I uploaded to this post way back when) and it works fine. So I can’t say what might be happening. I also downloaded if from this post and tested it and it worked fine as well.
Perhaps something got corrupted in your download?

2 Likes

Hey David,

Thanks for your quick response. I found out that I had made a foolish mistake. For some reason I was thinking that I had to execute EndPackage[] before MWordle[Deploy]. It works now. As a side note, the game is a great and clever adaption of the real thing! Thanks for taking the time to post it. :slight_smile:

Eleazar,
Great! I am glad you figured it out.
Enjoy!
It was a fun exercise to make it, and it amused my daughter :wink:
Best,
David

2 Likes