Language

Nepali in large language models

Devanagari tokenisation, Romanised Nepali and code-mixed input — the three failure points, and how to build a test set that catches them.

12 October 20267 min readKrip Artificial Intelligence Tech

Ask a general-purpose model to summarise a Nepali circular and it usually produces something fluent. Then look for the clause about who may approve an exception: it has gone, and nothing in the output admits that anything was dropped. For an organisation serving Nepali speakers, closing that gap is the project.

Where it breaks

Most multilingual tokenisers handle Devanagari badly. A word can consume several tokens where the English equivalent takes one, which raises cost, shortens the effective context and makes a mid-sentence omission likelier. The symptom is subtle — a summary that reads well and has lost the qualifier that changed the meaning.

Romanised and code-mixed input

Most Nepali written online is not in formal Devanagari. Names appear in three spellings, English words sit mid-sentence, and the same query arrives in three scripts from three different users. Retrieval that treats spelling variants as separate words fails to find the passage that answers the question, and then answers anyway.

Normalisation before retrieval is the practical fix: a mapping table for the common variants, transliteration for Romanised input, and a test set built from how people actually type rather than how a style guide says they should. Unglamorous work, and it lifts the measured result further than swapping the model does.

What to put in the test set

Report per script, never in aggregate. A system at 88% overall can be at 94% in Devanagari and 71% in Romanised, and the average conceals exactly the users who will complain. The split also tells you where to spend the next week, which a single figure cannot.

Where to spend the effort

Normalisation before retrieval lifts the measured result further than a model upgrade. A mapping layer for the common spellings, transliteration for Romanised input, and a test set built from how people actually type: about a week of unglamorous work that changes the number that matters.

Tokenisation is the second lever. Devanagari consumes more tokens per word in most multilingual tokenisers, which raises cost and shortens the effective context. A summary that drops the qualifying clause is often a context-length symptom rather than a comprehension failure.

Evaluate per script

Report accuracy separately for Devanagari, Romanised and mixed input. An aggregate figure hides the users who will complain, and those users are usually typing quickly on a phone. Put the same question in all three scripts; where the answers diverge materially, the system has a script problem rather than a knowledge problem.

Refusal rates

Ask for refusal rates per script, not just accuracy. A system that answers confidently in English and abstains in Nepali is mis-tuned in a way an average conceals.

Questions this answers

Do we need a Nepali-specific model?
Not necessarily. Retrieval quality, normalisation and a script-aware test set often matter more than which model is underneath.
Can we measure this ourselves?
Yes — a few hundred questions per script, labelled by two people independently, will surface the gap quickly.
Where this connects
NLP research
The research area this post sits under.
KRIP GPT
Nepali and English document answers.
KRIP Media AI
Nepali broadcast transcription.

Written by the team at Krip Artificial Intelligence Tech. If something here is wrong, write to info@kripaitech.com.np and it will be corrected with the date noted.

Talk through your case
On this page
Working with KRIP

Engagements start with a written problem definition and an agreed error budget.

Engagement models