# 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.

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

#### 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.

#### 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.

(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

### 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.

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.

#### 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.

### 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