← Back to projects PERSONAL PROJECT / PYTHON + AUTOMATION

Soletra
Solver.

In Soletra, each word must use the board’s letters and include the center letter. I built a Python script that reads those letters, filters word lists and submits attempts through the browser.

View source Python · Selenium · word filtering
THE SEVEN LETTERS

H must appear in every word.

MINI LAB / LETTER FILTER

Which word makes it through?

Enter a word to see the three rules that narrow the list before the script tries each candidate.

01 At least 4 letters ✓
02 Contains H ✓
03 Uses only the 7 letters ✓

SONHO passes the letter filter.

01 / THE CHALLENGE

How I choose the words.

I started with Portuguese word lists and removed words that did not fit the board. Each word must contain the center letter and use only that letter and the six outer ones.

02 / THE FLOW

How the script plays.

01

Read

Selenium opens the game and identifies the center letter and six outer letters on the page.

02

Prepare

The script combines an accent-free word list, past answers, and verb forms to build candidates.

03

Filter

I keep words with at least four letters, the center letter and no letters outside the board. Then I sort by length and alphabetically.

04

Try

Selenium types and submits each candidate. The game decides which words it accepts.

03 / THE HARD CHOICE

The problem with verb forms.

A word in the verb list can have another use too. Removing every verb form would lose possible answers, so I separate infinitives before removing some conjugations.

Selenium depends on the page structure to read letters and submit words. When the game’s interface changes, the selectors need to be reviewed.

FILTER / OFFLINE RUN

How many words pass each filter.

I ran the filters on the repository’s lists on October 3, 2026 without accessing the game. I used ATMSNOH, with H required. The counts show candidate words; acceptance depends on the game. The first four stages include repeated entries. The last also removes duplicates.

Examples at this stage

manha · sanha · amanha · manhosa · manhoso · sonhamo · tamanha · tamanho · montanha · assanhamo · manhattan · montanhosa

Data, source and hashes ↗
04 / RUNS

Results from three rounds.

I recorded these three rounds in the README. The results vary with the words the game accepts on each board.

59/5955 seconds
76/911 min 25 s
44/5846 seconds

Want to work together?

Send email