← Teacher guide

Can you predict the next word?

Count example endings and distinguish a frequent next word from a certain one.

AI Foundations · How AI generates text · about 25 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Before class

Use the board as a transparent fixed-context model, not a miniature modern LLM. No AI account is required. The Explain it to me clip is an optional scaffold after prediction. Formal fractions and percentages are an optional extension, not a prerequisite: start with counts and bars. Ask learners to justify answers using counts rather than guesses about the writer's intentions. Common misconceptions: most likely means certain; the generator understands what the writer intends; changing the examples cannot change the prediction.

Running the lesson

  1. Engage: ask students to write their own ending before seeing any examples.
  2. Explore: count mat, chair and roof before revealing fractions; then add five roof examples.
  3. Explain: the Explain it to me clip or its text is optional; do not require watching before exploring.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

Students may read 'most common' as 'must come next'.

When students get stuck

What you will seeA question to askThe fix
A student says mat must follow because it is most common.Which other endings appear in the examples? Could one of them come next?Point to the counts on the board: roof is 1 of 6, so it still happens sometimes.

Answers to the checks

  1. Engage: finish the sentence: Which word must come next after 'The cat sat on the'?
    There is no single word that must come next. Several endings are possible, even if some are more familiar.
  2. Explore: change the examples: Add five roof examples and update the model.
  3. Find the most frequent ending: Which ending appears most often in the original six examples?
    mat
  4. Frequent does not mean certain: On the board, roof is 1 of the 6 examples. If a generator picks endings in proportion to the counts, how often would you expect roof?
    About 1 time in 6
  5. Elaborate: change the evidence: Five more 'roof' endings are added. Which ending is now most common?
    roof
  6. Evaluate: a new pattern: A model sees 'I drink' followed by water four times and juice once. Which statement is justified?
    Water is more likely, but juice is possible
    Water is more frequent in these examples (4 of 5), but juice remains possible (1 of 5).
  7. Learning with AI: question a suggestion: You are writing about your cat, who sleeps on the roof. You type 'The cat sat on the' and the AI suggests 'mat'. What should you write?
    roof: it's what actually happened

Stretch and support

Stretch: Explain where the toy model differs from a modern AI assistant (tokens, much longer context, learned patterns).

Support: Use the prepared examples, read the explanation aloud and repeat a small trial.

Exit ticket

What happens to the most frequent ending when five roof examples are added?

Roof becomes most frequent: six roof, three mat and two chair.

What each step is for

Where it leads

Unit 1, lesson 2 uses a die to choose an ending by its chance. A physical die helps; no online AI account is needed.