Next word
This is how an AI like Claude or ChatGPT writes: by choosing, over and over, a likely next word. Play against a tiny one that learned by reading this site.
Write with the AI
Reading this site…
It doesn't show probabilities: Claude's API doesn't give them out. Look at the difference instead: this little model read 0 words; Claude, a large share of the internet.
Guess before the AI
A real sentence from this site, cut in the middle. Which word comes next?
Reading this site…
You 0 · AI 0
Ask Claude
Answered by Claude Haiku 5.5, from Anthropic. What you write is sent to Anthropic to answer; we don't keep it.
What's happening
A language model doesn't look answers up in a database. From a great deal of text it learns what tends to come after what, and with that it gives every possible next word a probability. It picks one, adds it, and starts again. The temperature sets how much it gambles: at zero it always takes the likeliest word and turns repetitive; high, it takes unlikely ones and starts to ramble. This one only looks at the last two words and learned from a few thousand; the big ones look at up to a million tokens (pieces of words) and learned from a large share of the internet, with neural networks of billions of parameters. The idea underneath is the same; chat assistants are then trained further, with instructions and people's feedback, so that they answer instead of just carrying on the text.
P(wₜ | wₜ₋₂ wₜ₋₁) · pᵢ ∝ exp(ln cᵢ / T)
How to play
Write with the AI: choose the next word yourself from the candidates, or let it choose, and move the temperature to watch the probabilities change. Then play the guessing game: real sentences from this site, cut in the middle. Who guesses better, you or the AI? Pay attention to why it wins.
How it's made
A trigram model, the simplest version of the idea: it counts, in this site's text, which word follows each pair of words, and when it doesn't know the pair it looks at one word. Your browser trains it in milliseconds when the page opens. Probabilities and temperature are computed as in the big models (a softmax). In a model this small, most pairs of words were seen with only one next word, so the temperature matters most where there's a real choice. It's how we explain AI in our training sessions: no magic.
Want something like this for your brand or your product?
Send a signalMore games
Neural network
Machine learning, made visible
Prism
Game design and ray tracing
Chaos
Scientific simulation and data visualisation
Murmuration
Agent simulation and emergence
Double slit
Quantum physics, made visible
Morphogenesis
Generative design and simulation
Cymatics
Real-time simulation and sound
Orbits
Physics simulation and interaction design
Fourier
Mathematics as art, and audio
Star colours
Colour science and design systems