Features

Type "I’ll see you" and the keyboard offers "tomorrow" before you do. It isn’t reading your mind. It’s running the odds — and it learned them from you.

Features — 172

How your phone’s keyboard guesses your next word

Filed UnderPhones, Everyday Science
Read Time~3 minutes
PublishedNovember 13, 2026 at 10:13 PM
Hands holding a phone with word suggestions showing above the keyboard
Photo: Ron Lach / Pexels

          Above the keys on your phone, three suggestions appear as you type. They often feel uncanny, especially when the keyboard offers a word you were only just thinking about. The explanation is less mysterious than the feeling. Your keyboard runs a small language model — a much smaller cousin of the systems behind chatbots — whose entire job is to answer one question: given the words just typed, what word is most likely to come next?

Frequency plus context
          The model starts with frequency. In ordinary English, some words follow other words far more often than chance would allow. After "happy," the word "birthday" is common. After "looking forward," the word "to" is nearly certain. The keyboard keeps a map of these pairings and short sequences, built from enormous amounts of text, and ranks the candidates by probability every time you type a word.
          Context narrows it further. The model doesn't just look at the last word; it looks at the last few words together. "I need to pick up the" points toward "kids" or "phone" or "prescription," and which one wins depends on the words before it and on what you tend to type. The suggestions update with every word because the odds change with every word.

“ Your keyboard isn’t reading your mind. It’s betting on the most likely next word — and it learned the odds from you.”

The part it learns from you
          The general map is the same for everyone. What makes your keyboard feel personal is the second layer: it keeps score on what you actually type. The names of your friends, the slang you use, the phrases you repeat, the words you type that most people never do — those get boosted in your rankings. Type a friend's unusual name a few times and it starts appearing in the suggestions, because for you, it is now a likely word.
          This learning almost always happens on the phone itself. The personal dictionary — your words, your frequencies — lives on the device rather than being sent off to a server, which is why a new phone's keyboard feels like a stranger for the first week. It hasn't met you yet.

Prediction is not autocorrect
          It is easy to blur this together with autocorrect, but the two do different jobs. Autocorrect looks backward: it fixes a word you already typed, deciding you meant something else. Prediction looks forward: it guesses a word you haven't typed yet. One repairs the past, the other bets on the future. When the prediction is wrong, it costs you nothing — you just type the word you meant, and the keyboard quietly adjusts its odds for next time.

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections