Menu

We don't let the LLM touch the crossword grid: AI clues, a 25,000-node search, and a validator that trusts nobody
📰

We don't let the LLM touch the crossword grid: AI clues, a 25,000-node search, and a validator that trusts nobody

DEV Community: typescript·EchoBuilds·12 minutes ago
#PIn2H8F1
#devtotypescript#devto#dev#grid#word
Long article (2604 words) — no AI summary yet.
Reading 0:00
15s threshold

CrosswordMaker.app is a browser-based crossword generator for teachers. You give it a topic, or paste your own word list, and get a printable puzzle with a separate answer key. Early on we made one rule that shaped everything else: the language model never sees, draws, or edits the grid. It proposes words and clues. A program does the rest.

This post is about that split: why we made it, what each side does, and the search and validation code that does the grid work. All the numbers come from our engine and its benchmark data, not from estimates.

TL;DR

A crossword grid is a constraint problem: every shared square has to be right for two words at once, and every answer needs exactly as many boxes as letters. Chatbots write text one token at a time and don't check their work, which is the wrong shape for that job.

The model returns { answer, clue } pairs through a JSON schema. The schema has no fields for coordinates, numbering, or validation.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.