Wordle - Calculations & starting words

Wordle - Calculations & starting words

At the start of this year I was introduced to Wordle and took to it imminently. It is a simple word game where you try to guess a 5 letter word. Every time you guess the wrong word, you get information about which letter are used in the correct word and where they are or aren’t used.

I didn’t need to play it for long, before I started think about the statistics and strategies. Specifically I started to think about:

  • How common are words with duplicate letters?
  • How common is each letter?
  • How common is each letter per slot?
  • And if I figure out the above, can I find a few good starting words?

Luckily the game is 100% JavaScript which makes it easy to analyze.

Getting the words

Before I start answering the questions, I will quickly go through how I obtained the words the analyze. As I mentioned, the game is made with Javascript, which means the source code and the word list is viewable in the web browser.

The steps here will be very general as web code can change at any point, making detailed steps obsolete.

First step is to right click on the page and selecting “View Source” (or similar named option). Then look for links to files with the ending of “.js”. Click each one until you find one that has a long list of words inside it.

The word list in the Wordle script

Usually, JavaScript is “simplified” to make it smaller, which means it’s hard to read without lots of editing. But in this case, we don’t want to understand the code, we just want the words, and they can be easily found by looking throw the code.

Getting answers to my questions

When I first downloaded the word list (2022-02-20), Wordle had 2309 possible answers and an additional 10638 possible valid words to guess/probe with. All statistics below is derived for that download.

How common are words with duplicate letters?

747 of the possible answers have one or more duplicate letter. That is about one third of the answers (32%).

How often each letter appears as a duplicate can be seen below.

A 69 B 13 C 29 D 22
G 11 H 10 I 24 J 00
M 15 N 23 O 81 P 18
S 49 T 61 U 10 V 4
Y 8 Z 5

How common is each letter?

In order from most common to least: E, A, R, O, T, I, L, S, N, U, C, Y, H, D, P, G, M, B, F, K, W, V, X, Z, Q and lastly J.

Letter # of words % of words
A 906 39%
B 266 12%
C 446 19%
D 370 16%
E 1053 46%
F 206 9%
G 299 13%
H 377 16%
I 646 28%
J 27 1%
K 202 9%
L 645 28%
M 298 13%
N 548 24%
O 672 29%
P 345 15%
Q 29 1%
R 835 36%
S 617 27%
T 667 29%
U 456 20%
V 148 6%
W 193 8%
X 37 2%
Y 416 18%
Z 35 2%

(A letter is only counted once per word. Duplicate letters are not counted twice.)

How common is each letter per slot?

In order from most common to least:

Slot 1:  S, C, B, T, P, A, F, G, D, M, R, L, W, E, H, V, O, N, I, U, Q, J, K, Y, Z, X

Slot 2: A, O, R, E, I, L, U, H, N, T, P, W, C, M, Y, D, B, S, V, X, G, K, F, Q, J, Z

Slot 3: A, I, O, E, U, R, N, L, T, S, D, G, M, P, B, C, V, Y, W, F, K, X, Z, H, J, Q

Slot 4: E, N, S, A, L, I, C, R, T, O, U, G, D, M, K, P, V, F, H, W, B, Z, X, Y, J, Q

Slot 5: E, Y, T, R, L, H, N, D, K, A, O, P, M, G, S, C, F, W, B, I, X, Z, U, J, Q, V

Letter Slot 1 Slot 2 Slot 3 Slot 4 Slot 5
A 140 (6%) 304 (13%) 306 (13%) 162 (7%) 63 (3%)
B 173 (7%) 16 (1%) 56 (2%) 24 (1%) 11 (0%)
C 198 (9%) 40 (2%) 56 (2%) 150 (6%) 31 (1%)
D 111 (5%) 20 (1%) 75 (3%) 69 (3%) 118 (5%)
E 72 (3%) 241 (10%) 177 (8%) 318 (14%) 422 (18%)
F 135 (6%) 8 (0%) 25 (1%) 35 (2%) 26 (1%)
G 115 (5%) 11 (0%) 67 (3%) 76 (3%) 41 (2%)
H 69 (3%) 144 (6%) 9 (0%) 28 (1%) 137 (6%)
I 34 (1%) 201 (9%) 266 (12%) 158 (7%) 11 (0%)
J 20 (1%) 2 (0%) 3 (0%) 2 (0%) 0 (0%)
K 20 (1%) 10 (0%) 12 (1%) 55 (2%) 113 (5%)
L 87 (4%) 200 (9%) 112 (5%) 162 (7%) 155 (7%)
M 107 (5%) 38 (2%) 61 (3%) 68 (3%) 42 (2%)
N 37 (2%) 87 (4%) 137 (6%) 82 (8%) 130 (6%)
O 41 (2%) 279 (12%) 243 (11%) 132 (6%) 58 (3%)
P 141 (6%) 61 (3%) 57 (2%) 50 (2%) 56 (2%)
Q 23 (1%) 5 (0%) 1 (0%) 0 (0%) 0 (0%)
R 105 (5%) 267 (12%) 163 (7%) 150 (6%) 212 (9%)
S 365 (16%) 16 (1%) 80 (3%) 171 (7%) 36 (2%)
T 149 (6%) 77 (3%) 111 (5%) 139 (6%) 253 (11%)
U 33 (1%) 185 (8%) 165 (7%) 82 (4%) 1 (0%)
V 43 (2%) 15 (1%) 49 (2%) 45 (2%) 0 (0%)
W 82 (4%) 44 (2%) 26 (1%) 25 (1%) 17 (1%)
X 0 (0%) 14 (1%) 12 (1%) 3 (0%) 8 (0%)
Y 6 (0%) 22 (1%) 29 (1%) 3 (0%) 364 (16%)
Z 3 (0%) 2 (0%) 11 (0%) 20 (1%) 4 (0%)

Starting words

The above information is interesting, but the ultimate question is what words can I start with to maximize the chance of getting useful information.

Below I have sets of words based on the above statistics.

Starting words based on letters popularity

If we go by which letters are the most popular ones, we can maximize the chance of finding letters used in the answer by using one of the two following word sequence.

1st word 2nd word 3rd word
All valid words OATER LYSIN BUMPH
Answers only IRATE LOCUS NYMPH

First sequence is built on all valid words and second one with only the words that are possible answers. The first sequence uses more popular letters, but no word has any chance of being the answer.

Starting words based on letters popularity in each slot

If we want to factor in slot popularity, we can use the following word sequence to not just find likely used letters but also to maximize the chance of picking the correct slot for them as well.

1st word 2nd word 3rd word
All valid words SAINE BORTY FLUMP
Answers only SLATE CRONY HUMID

Starting words based on high exclusion of answers

While working on the code for analyzing the words and letter frequency, I thought a lots of other ways to get good starting words. One way I liked, was picking the words that if no letters were correct would exclude the most words from the list of possible answers. That line of thinking gave we the following word sequences.

1st word 2nd word 3rd word
All valid words STOAE / TOEAS NIRLY BUMPH
Answers only ARISE / RAISE CLOUT NYMPH

Conclusion

Analyzing the words was a bit of fun for me and it did give me usable result. The current favorite sequence of starting words are the last presented: Arise, Clout and Nymph. They have been serving me very well. /Henrik