Language and AI in Pakistan

Roman Urdu and the standardising machine

Most Pakistanis type Urdu in Latin letters. Most systems treat that as an error to be fixed.

Photo: nSeika · CC BY 2.0 · via Flickr

Open any WhatsApp group in Pakistan and the dominant script is not Nastaliq. It is Roman Urdu: Urdu written in Latin letters, with spellings that vary by region, by generation and by the person typing. "Kya haal hai", "kia hal he", "kya hal hy". All correct, because there is no standard, and all understood.

Language models were mostly trained on text that has a standard. When they meet Roman Urdu, they do one of three things: treat it as noise, treat it as English with errors, or silently convert it into formal Urdu or English before responding. The third is the most dangerous, because it looks like success.

Why Roman Urdu exists

It is not laziness and it is not a transitional phase. It is the practical outcome of a generation that learned to type on Latin keyboards, on devices and services that did not support Nastaliq well or at all, and that found Roman transliteration faster than switching scripts. It has its own conventions, its own regional flavours, and its own expressive range: a Roman Urdu message can carry tone, irony and affection as well as any other script.

It is also, for many users, the only way they write Urdu. A person who speaks Urdu fluently and reads Nastaliq slowly will write Roman Urdu by default. A system that cannot read it has excluded them, and a system that reads it but replies in Nastaliq has told them their script is not good enough for a reply.

What standardisation costs

A citizen writes to a government assistant: "mera card expire ho gya, kya karna hoga". The system understands, replies in formal Nastaliq Urdu, and the reply is correct. Two things have happened. The citizen has been answered. And the citizen has been told, implicitly, that the way they write is not the way the state writes back.

Repeat that across every interaction and the system is teaching a lesson about whose register is legitimate. That lesson is a policy. Nobody wrote it.

The second cost is practical. Formal Urdu is not the register many Roman Urdu users read easily. A reply in the script and register the citizen used is more likely to be understood. A reply that has been upgraded for them may be fluent and useless, and the citizen, rather than admit they did not follow it, will guess.

The third cost is to the data. If a system normalises every Roman Urdu input into formal Urdu before logging it, the log no longer contains what the citizen said. It contains what the machine decided they meant. Any later analysis of how citizens actually communicate with the service will be analysing the machine's translation.

Code-switching is the norm, not the exception

Roman Urdu users switch into English mid-sentence constantly, and so do Nastaliq users. "Appointment reschedule karna hai Friday ko." That sentence is not broken Urdu or broken English. It is how the language is spoken by most of the people who speak it, and the English words in it are not borrowings; they are the normal words for those things.

A system that cannot follow the switch, or that resolves it by picking one language and translating the rest, has failed to understand the speaker even when it has understood the words. "Appointment" rendered into a formal Urdu equivalent is a word the user did not use and may not recognise. "Friday" is Friday.

The standardising instinct, applied to code-switching, produces replies that are more monolingual than the people they are addressed to. That is a strange thing for a state service to do, and it is what the default behaviour of most models will do unless told otherwise.

What to test

Three things, in any evaluation of a citizen-facing system in Pakistan, and all three are routinely skipped because the people evaluating the system write in English and never see the failure.

Does it accept Roman Urdu input without asking the user to rewrite it, and without treating it as misspelled English? Send it "mera card expire ho gya" and see whether it understands, asks for clarification, or replies about something else.

Does it reply in the script and register the user chose, unless the user asks otherwise? A Roman Urdu question should get a Roman Urdu answer. If the system replies in Nastaliq, that is a choice, and the choice should have been made by a person, deliberately, not by the model's default.

Does it follow code-switching rather than standardising it? "Friday ko reschedule karna hai" should produce a reply that uses "Friday" and "reschedule", because those are the user's words. A reply that translates them is a reply in a different register from the question.

None of these is hard to test. Each takes five minutes with a native speaker. The reason they are skipped is not cost; it is that nobody in the evaluation room would have thought to ask.

What my research does with this

Roman Urdu is one of the five varieties in the first stage of my study, and it is there specifically because it is the variety most likely to be standardised away. The questions in Roman Urdu are written by Roman Urdu users, with the spelling variation left in, because a cleaned-up Roman Urdu question is not the question a citizen would send. The reading of the responses asks, among other things, whether the model replied in Roman Urdu or upgraded the exchange.

The principle

Multilingual access means access in the language the person actually uses, in the form they actually use it. A system that serves Urdu only in its formal written variety has not provided multilingual access. It has provided access to a language most of its users do not write, and told them to learn it.

Written from deployment and research, not from a content calendar. If something here is wrong in your experience, tell me which line.