Language and AI in Pakistan

Who is in the evaluation room?

Systems are judged by the people who test them. If those people only write English, the failures in Pashto never get found.

Photo: DFID - UK Department for International Development · CC BY 2.0 · via Flickr

Every AI system is evaluated before launch. The evaluation determines what the builders believe about it. The builders' belief determines what the client is told. And the people in the evaluation room determine what the evaluation can see.

In most deployments I have observed in Pakistan, the evaluation room contains developers who write English, a product owner who writes English, and a test set written in English. The system is then launched to a population that mostly does not.

A room I was in

A clinic assistant, built to handle appointment requests in English and Urdu. The evaluation: the developer, the agency founder, the clinic's practice manager. All three fluent in Urdu; all three, by habit, writing in English when they test software. The test set: thirty English messages and six Urdu ones, the Urdu ones written by the developer in a formal register.

The system passed. It was launched. Within a week the practice manager was fielding complaints that the assistant "didn't understand" patients. The patients were writing in Roman Urdu, casually, with code-switching. None of the thirty-six test messages looked like that. The three people in the room, all of whom write Roman Urdu to their families every day, had not thought to test it, because testing software is something you do in English.

What the room cannot see

It cannot see that the Urdu replies use the wrong honorific, because nobody in the room reads the Urdu output as a citizen would; they skim it to check it is Urdu.

It cannot see that Roman Urdu input is being standardised into something the user would not recognise, because nobody sent Roman Urdu.

It cannot see that the Pashto flow, translated from the English prompt by a model, has lost the escalation instruction, because nobody in the room speaks Pashto and the Pashto flow was never tested at all.

It cannot see any of these because nobody in the room would notice them, and the test set does not contain them. The system passes. It is launched. The failures are discovered by citizens, one at a time, and reported by none of them, because the reporting route is in English.

Why the room is the way it is

Not from carelessness. From three defaults that compound.

Software is tested in English because the tools, the documentation and the habit are English. Even bilingual developers switch into English when they open a terminal.

The test set is written by the developer because the developer is the one writing it, and the developer writes the messages they would send, in the register they would use, which is formal and correct.

Nobody budgets for native-speaker evaluation because nobody thought of it as a line item. It is not in the proposal template. It is not in the framework checklist. It falls through.

Changing the room

The fix is not a better model. It is a different room. Three changes.

Native speakers on the evaluation team, with authority to fail the system. Not consultants who review a sample afterwards; people in the room when the pass/fail decision is made, who can say "this reply is rude" or "a patient would not understand this" and have that count. For Pashto, that means a Pashto speaker, and if the agency does not have one, the agency hires one for a day.

A test set in every language the system will meet, written by speakers of those languages, including the awkward cases: code-switching, regional variants, the angry message, the one with no punctuation, the one in Roman script with idiosyncratic spelling. The test set should look like the inbox will look, not like the developer's idea of a clean request.

A rubric that scores what native speakers care about: register, script, fidelity, whether the escalation triggered, whether a person would feel addressed correctly. Not just "did it answer". A system that answers rudely has not passed.

Who pays for this

This is the real objection. Native-speaker evaluation costs money and time, and the budget was set by people who did not think of it.

The answer is that the cost is small against the cost of launching a system that serves most of its users badly. A day of a Pashto speaker's time, at launch, is cheaper than a month of complaints the practice manager has to handle by hand, and far cheaper than the patients who stopped using the service and never said why.

The other answer is that the alternative, discovering the failures after launch through citizen complaints, is both more expensive and less likely to happen, because the complaints will not come. The people the system fails are the people least likely to find the complaint form.

For procurement

A government body buying a citizen-facing AI system should require, in the tender, that the system has been evaluated by native speakers of every language it will serve, on a test set written by those speakers, with the results available for inspection. That is one paragraph in a procurement document. It changes what every vendor has to do, and it is the single most effective lever for changing the room.

The principle

Culturally grounded evaluation is a question about who holds the pen when the system is judged. Put the people the system is for in the room, and give them the pen.

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