GLASS BOXSign in

It guesses the next letter.
That’s the whole trick.

Every AI that writes works this way. This one is small enough that you can watch it happen, one letter at a time, and check every step yourself.

The usual word for one of these is a black box— something that gives you an answer without ever showing you why. This one isn’t. It runs entirely inside this page: no download, no account, nothing hidden.

Show me a guessread the code
10,937numbers inside it
25letters it knows
58sentences it has read
5,120sentences it could write

Five steps, for every single letter

This is the entire machine. It does these five things, in this order, to produce one letter — then it starts again from the top for the next one.

01

Turn the letters into numbers

Computers only do arithmetic, so every letter gets a number first. a is 3, b is 4. Nothing clever yet — it's just a code.

02

Give each letter a scorecard

One number can't say much about a letter, so each one gets 32. The strange part: nobody chose what those 32 numbers mean. The model made them up while it was learning.

03

Look back at what came before

To guess what's next, it re-reads everything so far and decides which letters matter most right now. The brighter a letter glows, the more attention it's getting.

04

Guess what comes next

It scores all 25 letters it knows and turns those scores into percentages. This is the guess.

05

Pick one

It doesn't always take the top choice — it rolls a weighted dice. You control how much of a risk-taker it is.

It makes up sentences nobody taught it

This model has read exactly 58 sentences. They all follow one shape — the (word) (animal) (did something) the (thing) — and there are 5,120 different sentences that fit it. It saw about one in ninety of them.

So it can’t get by on memory. To do well it had to work out the rule — and it did. About 96% of what it writes follows the shape correctly, and around 80% of those are sentences it was never shown. The page checks each one against the training data and tells you which is which, so you don’t have to take our word for it.

The few it gets wrong are the best part. Every so often it writes something like “the new cow sat on the bulog.” — proof that it really is working one letter at a time, guessing its way toward a word, rather than picking from a list of words it already knows.

There’s a shorter way to say all of this, and now that you know what it’s doing it should land: it’s curve fitting — the curve is words. The same arithmetic that draws a best-fit line through dots on a graph, pointed at letters instead.

Watch it make one up