Translation
The site is written in English and published in English, Hindi, Tamil, Telugu, Kannada and Malayalam. English is the source. The other five are machine translations. No person has reviewed them, and every translated page opens with a notice saying so. This document records how they were made, what the checks catch and what they cannot, and how to correct or add a language.
#Status
| Language | Code | Made by | Human review |
|---|---|---|---|
| English | en | Written by the project | Source text |
| Hindi | hi | Machine translation, 30 November 2026 | None |
| Tamil | ta | Machine translation, 30 November 2026 | None |
| Telugu | te | Machine translation, 30 November 2026 | None |
| Kannada | kn | Machine translation, 30 November 2026 | None |
| Malayalam | ml | Machine translation, 30 November 2026 | None |
The notice at the top of each translated page is the string notice.unread. It says the page was machine-translated, is provided for convenience only, has not been reviewed by a person, and that the English page is the reference. Do not remove it from a language until a named native reader has gone through every string, and then change its wording to say who reviewed it and when.
#What is translated and what stays in English
Translated: every sentence on every page, button and label, the names of the 36 states and Union Territories, the six zones, and the notice.
Kept in English on purpose:
- The site's name,
site.name, is "House of the People" in every language. - Quotations (
s.q_*, not the_byattribution). A quotation is a person's own words. A translation of it would be our words in their mouth. The attribution line is translated; personal names, parties and the names of newspapers stay in Latin script. - The text of the Constitution and the Acts, which is authoritative only in English. The law page says so.
- District and constituency names, as the Census and the Election Commission print them.
- The working paper, which is in English only.
- Numbers. Every language uses Western digits (0 to 9) with Indian grouping. Indic digits are rejected by the checks, because the figures on the page are inserted by the build and must read the same in every language.
#How the five were made
scripts/split_translation.pycuti18n/en.jsoninto four parts,i18n/parts/en.1.jsontoen.4.json.- One translator per language wrote
i18n/parts/<lang>.1.jsonto<lang>.4.json, a glossary of its term choices ini18n/parts/<lang>.glossary.txt, andi18n/names.<lang>.jsonwith the names of units and zones. scripts/merge_translation.py <lang>joined the parts intoi18n/<lang>.jsonand ran the validator below.- Each language was added to
site/langs.json, and the build was run and looked at in a browser at 390 and 1280 pixels wide.
The glossary files are the place to start a human review. Each lists the words chosen for delimitation, constituency, Union Territory, freeze, apportionment, malapportionment, lakh, crore and the rest, so a reviewer can accept or change a term once and have it applied everywhere.
#The checks
python3 scripts/check_translation.py <lang> checks one language, and scripts/check.py runs the equivalent for every published language on every push. They fail on:
- a missing or extra key;
- a different set of
{figures}or[figures]from the English string, because these are replaced by the build and a dropped one leaves a hole in the sentence; - a number that differs from the English, so no figure can be typed into a translation (the share-link strings are exempt, because they contain URL escapes, and so are the three strings that add a sentence about the paper and about English names);
- Indic digits;
- the characters
<,>and&, a straight double quote, an em dash, or an emoji; site.nameor a quotation that is not identical to the English;- a string of six words or more in English that is under 45 per cent in the target script (this catches a string left untranslated);
- letters from another Indian script, which is how a machine translation going wrong usually shows;
- a missing name for any of the 36 units or six zones.
What the checks cannot see is whether a sentence is correct, natural or fair. A vowel sign that is wrong looks right to anyone who cannot read the script. That is the reason for the notice, and the reason no language should be described as reviewed until a person has read it.
#Known limits of the first translation
These were reported by the translators and are the first things a reviewer should look at.
- Citation lines. The 45 per cent rule forced some bill and Act titles into the local script, and added a short gloss beside the English title of the Carnegie Endowment paper in Telugu, Tamil, Kannada and Malayalam. The source lines are therefore a mixture of scripts. Decide whether titles should stay in Latin script, and if so relax the rule for the
sources.*keys. - Case endings next to a state name. The state's name is inserted by the build, and a case ending cannot be attached to an inserted word, so sentences in Tamil, Telugu, Kannada and Malayalam use a separate word such as "area" after the name. Some of these read stiffly.
- Terms with competing choices. Freeze (the cap on seats until 2051), delimitation, malapportionment, "raised by half" and "seats' worth" each have more than one reasonable rendering. Each language's glossary shows which one was used.
- Tamil: Union government. Tamil uses மத்திய அரசு. ஒன்றிய அரசு is the Tamil Nadu government's own usage and reads as taking a side in this debate, so it was not used. A Tamil reviewer should confirm.
- Fragments. A few strings are pieces of a longer sentence assembled by a script (for example the legend text on the tile map). The translator could not see the context.
- Share text. The WhatsApp message strings (
c.share_text,st.share_text) are percent-encoded. They were edited by hand so that no quote mark or extra sentence is left in them.
#Checking a translation with Sarvam
Sarvam AI's translation model can translate a string back to English, which gives a second opinion on meaning that does not depend on whoever wrote the translation. The method used on 30 November 2026:
- For each key, replace the placeholders with neutral tokens (
X1,X2), send the translated string to Sarvam'stranslateendpoint with the targeten-IN, and keep the English that comes back. - Compare the back-translation with the original English by word overlap, and read every string where the overlap is low.
- Treat a low score as a prompt to read the pair, not as a verdict. Back-translation loses nuance in both directions.
The API key is never stored in the repository.
#The Sarvam check of 30 November 2026
Sarvam AI's translation model (mayura:v1, formal mode) translated a sample back to English: 120 strings of five words or more for each language, 600 in all, chosen at random and the same keys for every language. Placeholders were replaced by tokens before sending. Each back-translation was scored by the share of the English string's words that it recovers.
| Language | Mean recovered | Strings below 0.35 |
|---|---|---|
| Hindi | 0.73 | 5 |
| Tamil | 0.65 | 8 |
| Telugu | 0.64 | 11 |
| Kannada | 0.66 | 9 |
| Malayalam | 0.70 | 6 |
What this shows and what it does not. The overlap is a rough signal, and a low score is as often a fault in the back-translation as in the translation. The three Telugu strings that scored worst (m.cap_pop, st.pop_same, st.pop11_gain) were read against their English originals, and the Telugu is a faithful rendering; Sarvam misread them (it turned "seats gained or lost" into "swing seats in the 2026 election"). No string has been confirmed wrong by this check.
One pattern is worth a native reader's attention. Back-translated, the word for "seat" in Telugu, Kannada, Tamil and Malayalam often comes back as "position" or "place". The words used (స్థానం, ಸ್ಥಾನ, இடம், and സീറ്റ് in Malayalam) are the ones election reporting in those languages uses for a Lok Sabha seat, but a reviewer should confirm that they read as seats in a House and not as posts or positions.
Strings that scored below 0.35, by key, for a reviewer to read first:
- Hindi:
m.cap_pop,st.pc_single,lab.round_nearest,lab.col_share_new,atlas.minimum - Tamil:
st.res_h,m.cap_pop,st.pc_single,atlas.spread_p,lab.round_nearest,sources.method_h,dl.alabama.a,st.pc_none - Telugu:
s.map_h,law.a81_h,corr.description,m.cap_pop,st.pc_single,lab.col_share_new,atlas.title,sources.method_h,st.pop_same,st.pop11_gain,atlas.minimum - Kannada:
q.1,law.a81_h,terms.a11y_4,atlas.spread_p,s.n7,sources.method_h,lab.base_seats,atlas.minimum,bills.open_census_h - Malayalam:
s.map_h,m.cap_pop,m.n8,atlas.title,sources.method_h,atlas.minimum
The API key for the check was saved to the working environment and is not in the repository.
#Correcting a string
- Edit the value in
i18n/<lang>.json. Keep every{figure}and[figure], and do not add a number. - Make the same edit in
i18n/parts/<lang>.<n>.json, which is whatmerge_translation.pyreads. If you skip this, the next merge reverts your change. - Run
python3 scripts/check_translation.py <lang>andpython3 scripts/check.py. - Build, and look at the page at 390 pixels wide. Indian-script text is longer than English and wraps differently.
When an English string changes, every language needs the matching change in the same commit. check.py fails if a key is missing, but it cannot tell that a translation is now out of date. Search for the key in all five files.
#Adding a language
- Add its code and its name in its own script to
LANG_NAMESinscripts/build.py. - Add the script's Unicode range to
SCRIPTSinscripts/check_translation.pyand the digit range toscripts/check.py. - Run
python3 scripts/split_translation.py, translate the four parts, write the glossary andi18n/names.<lang>.json, and runpython3 scripts/merge_translation.py <lang>. - Add the code to
site/langs.jsononly when the checks pass. The build then writes the pages, the language menu, thehreflanglinks and the sitemap entries. - Add a font stack for the script in
assets/site.css. The site downloads no fonts, so name the fonts the main systems already have. - Look at the home page, the calculator, a state page and the bills page at 390 and 1280 pixels, in both colour themes, and run axe over them.
#Translating the documentation
The documentation is translated into the same five languages and follows the same rules. The English files in docs/ are the source. Each language has a folder docs/<lang>/ with the same file names, including CONTRIBUTING.md and CHANGELOG.md, and its own _sidebar.md. A translation keeps every heading, table, list item, code block, inline code span, link target and number of the English, and translates the prose and the link texts. python3 scripts/check_docs_translation.py <lang> enforces this. The words around the pages, such as search, contents, previous and next, are the strings dx.* in i18n/<lang>.json.
#Translating the working paper
The paper is not translated. If a translation is wanted, it needs a named human translator and a reviewer, because the paper is a research document and a machine translation of its arguments is not acceptable.