Ever wonder what happens behind the scenes when you enter a pattern like C??SSW?RD? We explain the algorithm that finds your answers.
When you type a pattern like C??SSW?RD into a crossword solver, the tool finds every word in its database that matches that exact structure. Here is how the algorithm behind that works.
Each ? in your pattern represents any single letter. The solver converts your pattern into a regular expression — a search rule the database can evaluate. C??SSW?RD becomes the rule: starts with C, then any two letters, then SSW, then any one letter, then RD.
SmartUnscramble uses a PostgreSQL database of over 270,000 real English words. When you submit a pattern, a SQL query filters for words of the correct length whose characters match your known positions. The database returns matches in milliseconds.
The number of squares in your crossword answer is always known in advance. The solver uses this length to filter candidates before applying the pattern. A six-letter pattern will never match five-letter or seven-letter words, making results highly precise.
Even experienced crossword solvers mentally search only a few hundred words at most. A pattern solver checks every word in the dictionary in under a second. Combined with crossing letter clues, this makes solving even difficult grids much faster and more enjoyable.
For a four-letter clue with pattern C_T_, candidate words may include CATS or CUTE depending on clue meaning. A solver suggests possibilities; it does not know which crossing letters are correct.
Recheck every crossing when an answer looks forced. One incorrect entry can make several otherwise reasonable suggestions seem impossible.
If a five-letter entry has A as its second letter, a pattern search such as _A___ returns words that fit that placement. A clue about a fruit can then eliminate unrelated matches. Crossings and clue meaning remain essential, especially for puns and themed puzzles.
Enter one clue with no letters, then add two confirmed crossings. Observe how the candidate list shrinks and verify the answer against the clue rather than accepting the first result.
Word games use different dictionaries and scoring rules. Check the rules for your specific game, verify unfamiliar words, and use solver suggestions to learn patterns rather than assuming every suggestion is valid in every puzzle.
Written by
The SmartUnscramble Team
Word-game enthusiasts and puzzle solvers who build and maintain SmartUnscramble’s free tools. We play Wordle, Scrabble, and Words With Friends daily, and every guide is checked against our 270,000-word dictionary. Learn more about us or read our editorial policy.