Junior Codes
Words & Wires

How AI Reads Words: Text Features Explained for Kids

Turn words into numbers a model can learn from.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Text features, explained simply

A model works with numbers, not meanings. To learn from text, words first have to be turned into numbers. Those numbers become the model’s features.

One simple method is counting: how many times does each word appear in a message? A review containing "brilliant" and "fun" several times is probably positive. A model can learn which words go with which labels.

Counting words is a good start, but it throws away word order. Modern language models use far richer number patterns that capture how words relate to one another.

Example: Counting words in reviews

  • "Fun game, really fun!" → fun: 2, game: 1, really: 1
  • "Boring and slow" → boring: 1, slow: 1
  • After many labelled reviews, the model learns that "fun" leans positive and "boring" leans negative.

Try this

  • Pick a short story paragraph and tally the five most common words. What do they tell you?
  • Write two messages with exactly the same words in a different order but a different meaning.
  • Guess whether a film review is happy or grumpy from just three of its words.

Practise it in Wonderwild

“Turn words into clues”

Discovery 15 in Words & Wires, one of 24 AI discoveries in Wonderwild.

Your child trains, tests and questions a small model in the browser with Pip. No coding needed. For ages 7+.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Questions parents and kids ask

How do computers understand words?+

They do not understand words the way people do. They turn words into numbers and learn patterns in those numbers, such as which words tend to appear together.

Is this how chatbots work?+

Chatbots use much larger and more complex models, but they start from the same step: turning text into numbers a model can process.

Prefer learning with a teacher?

Our live AI Explorers course teaches these ideas in small online classes led by a software engineer, with projects and feedback. Every live course also includes 12 months of full Wonderwild access for practice.

See the AI Explorers course