Stage 1 · Ages 8–12 · How it guesses

Computers That Guess the Next Word

A chatbot keeps picking a likely next word — the same trick as phone autocomplete, kept going.

A chatbot is a computer that is very good at one job: guess the next word.

You type some words. It picks a likely next word. Then it does that again, and again, until it has a whole sentence.

That is the same trick your phone uses when it suggests the next word while you text. The chatbot just keeps going for much longer.

Next-Token Prediction
"The cat sat on the ___"
mat
42%
floor
21%
sofa
14%
roof
9%
moon
2%

The computer scores possible next words, then picks one. Click to sample.

Worked example. You start: "The cat sat on the". The computer might guess mat (very common), or sofa, or even moon. Mat is not "true" because a table said so. It is what often comes next in sentences the computer saw while it was trained.

It can write a story, answer homework, or chat like a friend — still by guessing the next word, over and over.

Lookup vs. Next-Token Guess
"Capital of France?"
DATABASE
ParisBerlinTokyo
Exact hit
LLM
Paris
Seen thousands of times — the continuation is extremely peaked.

A school database either has the row or it does not. A guessing computer always produces something that looks like an answer.

💡

A useful picture: this is super-powered autocomplete, not a librarian with a perfect catalog.

Check your understanding
1. What is a chatbot mainly trained to do?
2. Why can it still give an answer when nobody really knows the fact?
All lessons in Stage 1: Explorer