astrowonk / TwitterWordle

Solve Wordle with Public Tweets
GNU General Public License v3.0
2 stars 1 forks source link
inference python tweets twitter wordle

Wordle inferred from Twitter shared results.

This repository started exclusively as an effort to 'solve' the daily wordle with only shared scores on Twitter. However, I have also analyzed the Most Popular Wordle Openers Analysis using Twitter data.

The Notebooks:

More details on Solving Wordle with tweets in the Jupyter Notetbooks:

Predict from Tweets

Create Lookup Dictionaries

Discussion

The TwitterWordle class here can predict the wordle of the day only from public tweets. This is an alternative and maybe a little simpler approach than this excellent Ben Hamner's Kaggle project.

I can't decide if this is the coolest way to "solve" wordle or the dumbest. I do think it's a fun problem to try and extract a signal from what seems like noisy data.

The code now, by default, runs in a mode where it doesn't reveal the answer, it should print a SHA256 hash of the answer and compare it to a hashed answer dictionary to verify if it's correct (assuming the NY Times doesn't change the deterministic pre-shuffled order.) Similarly the plot, by default, will has the words on the x-axis.

Storing tweets is complicated, so best to download the data from kaggle, I'm not hosting any tweets in this repository. I have a helper function that uses searchtweets to download, if you have a Developer account and API keys.

Major differences from above Kaggle notebook:

The solve method of the main class returns an image of the top candidate scores, here is Wordle 223:

perky

The Notebooks:

Predict from Tweets

Create Lookup Dictionaries