Lesson 517 of 1234
How AI Counts Words to Pick the Next One
AI doesn't think — it picks the next word by guessing what fits best.
Lesson map
What this lesson covers
Learning path
The main moves in order
- 1The big idea
- 2next-word prediction
- 3probability
- 4language model
Concept cluster
Terms to connect while reading
Section 1
The big idea
When AI writes a sentence, it picks one word at a time. For each spot, it guesses what word usually comes next based on tons of writing it has read. It's like a super fast game of fill-in-the-blank.
Some examples
- After 'Once upon a' the AI guesses 'time' because that's what usually comes next.
- After 'peanut butter and' the AI guesses 'jelly' because most sentences go that way.
- If you start with 'The cat sat on the' the AI might pick 'mat' or 'rug'.
- AI doesn't know what the words mean — it just knows which ones tend to go together.
Try it!
Open a chatbot and start a sentence like 'My favorite snack is'. Don't finish it. See what the AI picks. Try a few times — does it pick the same word every time?
Key terms in this lesson
End-of-lesson quiz
Check what stuck
15 questions · Score saves to your progress.
Tutor
Curious about “How AI Counts Words to Pick the Next One”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Explorers · 40 min
AI Is Really a Prediction Machine
AI is like a super-smart guesser that predicts what comes next.
Explorers · 40 min
AI and the Confidence Trick: Sounding Sure but Being Wrong
Learn that AI can sound super sure even when it is wrong.
Explorers · 7 min
AI Quietly Picks the Most Likely Word
AI picks each word by guessing which is most likely to come next.
