Natural language processing — how machines handle words
The phone translates the guest's message into Urdu and Hindi — but not into Kashmiri, the language Grandmother speaks. Why?
- Split a paragraph into tokens and count them
- Predict the next word like a language model
- Explain why some languages get weaker tools
Natural language processing — how machines handle words
The phone translates the guest's message into Urdu and Hindi — but not into Kashmiri, the language Grandmother speaks. Why?
- Split a paragraph into tokens and count them
- Predict the next word like a language model
- Explain why some languages get weaker tools
Story
Learn it
Natural Language Processing (NLP) is the domain of AI that works with human language: reading, writing, listening and speaking. A machine does not understand words the way you do. It breaks sentences into pieces, counts which pieces appear and which come together, and uses those counts to predict the next word. Everything it knows comes from text that already exists, which is why it is strong in English and weak in Kashmiri.
Words to know
the domain of AI that helps machines understand and produce human language, written or spoken.
a piece of text a machine works with: usually a word, sometimes part of a word.
splitting a sentence into tokens.
how many times a word appears in a text.
a model that predicts the next word, learned from a huge number of example sentences.
a language with little text online for machines to learn from, like Kashmiri.
Step by step: three steps on one sentence
Sentence: "The shikara crossed the lake and the boatman sang."
- Tokenise: The · shikara · crossed · the · lake · and · the · boatman · sang. That makes 9 tokens.
- Count: the appears 3 times, the most common token. Small words like the and and usually win; the important words (shikara, lake) are rarer.
- Notice what comes together: after the come shikara, lake and boatman.
- Predict: in millions of sentences, what usually follows "breakfast at …"? A number, like 7. A language model makes that same guess, one word at a time.
Why Kashmiri is harder: English has billions of pages online to learn from; Kashmiri has far fewer. Less text means fewer patterns, and weaker tools. India's Bhashini mission is building open translation tools, including Kashmiri.
Used in translation, voice assistants, chatbots, spam filters and phone autocomplete.
Careful: a language model predicts words that usually go together. That is not the same as knowing what is true, so a smooth, confident sentence can still be wrong.
Your missions
word-count.ods (a Dal Lake paragraph, one word per row) · Semantris (teacher demo, no account)Be a word counter
pairs10 min- 1
Open
word-count.ods. Column A is the paragraph split into single words — that's tokenising. - 2
Predict: which word will be the most common? Write it in E1.
Only you can see this - 3
Type
thein C1, and=COUNTIF(A:A;C1)in D1. Trylake,boat,water,snow. - 4
Which word wins? Is it an important word or a small one?
- 5
In C3 type a word; in D3 the word you think comes after it most often. Check column A. You just predicted like a language model.
Semantris
whole class8 min- 6
The teacher opens Semantris (research.google.com/semantris) → Arcade. The class calls out clue words; the teacher types them.
- 7
Watch which word the AI thinks is most related. Why did snow go with cold and not white?
No laptop today?
Cut a printed paragraph into single words. Pile up matching words, count them, and write the top 5. Then play Next word: one child reads the start of a sentence, everyone writes the next word. Did most of you choose the same one?
Debate it
Kashmiri is spoken by millions of people, but there is far less of it online than English.
If there are no good Kashmiri AI tools, who loses out? What could people in Kashmir do to help machines learn their language, and what would they need to be careful about?
Check yourself · practice, not a test
In the app, students answer these one at a time and each answer is checked straight away. It's practice, never a mark — anything they miss comes back later for another go.
1.What does NLP stand for?
- ANew Learning Program
- BNatural Language Processing
- CNetwork Link Protocol
- DNext Letter Prediction
2.Many NLP tools work by predicting the next word from lots of example sentences.
TrueFalse3.Why is a machine usually better at English than at Kashmiri?
- AEnglish words are shorter
- BIt has learned from far more English text
- CKashmiri has no grammar
- DComputers are made in English
4.Which of these use NLP? (choose all)
- AAutocomplete on a phone keyboard
- BA translator app
- CA digital thermometer
- DA spam filter for emails
NLP breaks language into pieces, finds the patterns and predicts. It is only as good as the text it learned from.
Typing practice
Skill: numbers and the symbols above them (7 min)
- On typing.com, open the lesson on number-row symbols.
- Practise the Shift key with
!()=. - Then type this sentence twice, with care:
Breakfast at 7, shikara at 8!
- !
- (
- )
- =
- Breakfast at 7, shikara at 8!
Written and designed by Faizan Ayoub. © 2026 Faizan Ayoub. All rights reserved.