canon export
Browse files
README.md
CHANGED
|
@@ -70,85 +70,138 @@ configs:
|
|
| 70 |
path: data/locales.parquet
|
| 71 |
---
|
| 72 |
|
|
|
|
|
|
|
| 73 |

|
| 74 |
|
| 75 |
-
#
|
| 76 |
|
| 77 |
**In Amharic, `if` is `ከሆነ`. In Arabic, `return` is `إرجاع`.**
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
Programming languages are written in English. `if`, `while`, `class`, `import`:
|
| 84 |
-
a developer who does not read English is memorising shapes. Naming those
|
| 85 |
-
concepts in someone's own language is the work, and naming them *well* is a
|
| 86 |
-
question only speakers of that language can settle. This dataset is where those
|
| 87 |
-
decisions are recorded while they are still being made.
|
| 88 |
-
|
| 89 |
-
## What you can do with it
|
| 90 |
-
|
| 91 |
-
- **Look up a concept in a language.** One row per concept per language, with
|
| 92 |
-
the chosen rendering and its maturity.
|
| 93 |
-
- **See how far a language has come.** The `locales` config gives per-language
|
| 94 |
-
counts across the maturity ladder, so you can tell at a glance which
|
| 95 |
-
languages have had human attention and which are still machine drafts.
|
| 96 |
-
- **Trace a decision back to its evidence.** `option_uid` is a stable,
|
| 97 |
-
content-addressed key. It resolves in
|
| 98 |
-
[`legesher/language-corpus`](https://huggingface.co/datasets/legesher/language-corpus)
|
| 99 |
-
to every alternative that was proposed for that concept and every endorsement
|
| 100 |
-
attached to them.
|
| 101 |
-
- **Build terminology tooling.** Glossaries, translation memories, IDE
|
| 102 |
-
vocabularies, evaluation sets for multilingual code models.
|
| 103 |
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
|
|
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
### `machine`
|
| 116 |
|
| 117 |
Selected without anyone judging this particular word — carried over from a
|
| 118 |
shipped language pack, or picked by a batch job resolving a collision.
|
| 119 |
|
| 120 |
-
It is not arbitrary
|
| 121 |
-
selected at all
|
| 122 |
the Unicode normalisation the interpreter applies, and free of collisions with
|
| 123 |
other terms in its own vocabulary. What no one has asked is whether it is the
|
| 124 |
*right* word — whether a programmer who speaks that language would recognise
|
| 125 |
it, or would wince.
|
| 126 |
|
| 127 |
-
**Treat these as proposals.**
|
| 128 |
|
| 129 |
### `experimental`
|
| 130 |
|
| 131 |
A person has looked at this specific rendering and kept it, replaced it, or
|
| 132 |
-
rewritten it
|
| 133 |
-
|
| 134 |
|
| 135 |
One informed opinion stands behind it. That is meaningfully more than
|
| 136 |
-
`machine`
|
| 137 |
-
|
| 138 |
|
| 139 |
### `reviewed`
|
| 140 |
|
| 141 |
Native speakers have signed off, and more than one, so the rendering reflects
|
| 142 |
agreement rather than a single person's preference.
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
voices is what makes a rendering a *shared* answer.
|
| 149 |
|
| 150 |
**How many voices, and how varied, is still being defined.** We would rather
|
| 151 |
-
say
|
| 152 |
|
| 153 |
### `official`
|
| 154 |
|
|
@@ -156,7 +209,7 @@ Ratified in a convened session, and screened.
|
|
| 156 |
|
| 157 |
Screening is a separate axis from accuracy: a rendering can be a perfectly
|
| 158 |
correct translation and still be the wrong word to ship — offensive in another
|
| 159 |
-
register, unfortunate
|
| 160 |
in the language it should not. `official` means both questions were asked and
|
| 161 |
answered by people with standing to answer them.
|
| 162 |
|
|
@@ -165,25 +218,24 @@ reaches.
|
|
| 165 |
|
| 166 |
### Where things stand today
|
| 167 |
|
| 168 |
-
0 renderings are at `reviewed` or above.
|
|
|
|
|
|
|
|
|
|
| 169 |
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
|
|
|
| 173 |
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
without the people it is for. Publishing early means the current state is
|
| 177 |
-
visible, citable, and arguable — and that the communities who speak these
|
| 178 |
-
languages can see what is being proposed in their name while it is still
|
| 179 |
-
genuinely open.
|
| 180 |
|
| 181 |
-
|
| 182 |
-
pack that rendering ships in.
|
| 183 |
|
| 184 |
-
|
| 185 |
|
| 186 |
-
|
| 187 |
|
| 188 |
| Column | Meaning |
|
| 189 |
| --- | --- |
|
|
@@ -198,50 +250,40 @@ pack that rendering ships in.
|
|
| 198 |
| `decided_at` | When the selection was made |
|
| 199 |
|
| 200 |
`identity_ok` marks a deliberate cognate or loanword — `stopiteration` in
|
| 201 |
-
Danish, `Lambda` in German. It does not mean "not translated yet"
|
| 202 |
-
a reader
|
| 203 |
-
|
| 204 |
-
### `locales`
|
| 205 |
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
| `native_name` | The language's name in itself |
|
| 211 |
-
| `rtl` | Written right-to-left |
|
| 212 |
-
| `decisions` | Renderings for this language |
|
| 213 |
-
| `machine` / `experimental` / `reviewed` / `official` | Count at each rung |
|
| 214 |
-
| `native_reviewed` | Renderings a native speaker has looked at |
|
| 215 |
-
|
| 216 |
-
## Who decides
|
| 217 |
-
|
| 218 |
-
`decided_by` records the role that made a selection, not the person:
|
| 219 |
-
`automated` for migrations and batch jobs, `maintainer` for curation, and
|
| 220 |
-
`native-reviewer` for a speaker of the language.
|
| 221 |
|
| 222 |
-
|
| 223 |
-
independent. `status` says **how much** review stands behind a rendering;
|
| 224 |
-
`decided_by` says **who** made the most recent call. A single native reviewer
|
| 225 |
-
is visible here without moving the rung, because their judgement is real and is
|
| 226 |
-
not yet a consensus.
|
| 227 |
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
Endorsements, attribution and withdrawal are handled through
|
| 234 |
[`legesher/language-corpus`](https://huggingface.co/datasets/legesher/language-corpus),
|
| 235 |
which is the artifact that carries them.
|
| 236 |
|
| 237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
|
| 239 |
-
|
| 240 |
-
yet, the renderings here want your eyes. Corrections, endorsements and
|
| 241 |
-
objections all move a rendering up the ladder — and disagreement is a
|
| 242 |
-
contribution, not an obstacle.
|
| 243 |
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
```bibtex
|
| 247 |
@misc{legesher_language_canon,
|
|
|
|
| 70 |
path: data/locales.parquet
|
| 71 |
---
|
| 72 |
|
| 73 |
+
# Legesher language canon
|
| 74 |
+
|
| 75 |

|
| 76 |
|
| 77 |
+
## What this canon is
|
| 78 |
|
| 79 |
**In Amharic, `if` is `ከሆነ`. In Arabic, `return` is `إرجاع`.**
|
| 80 |
|
| 81 |
+
The word each programming concept goes by in each human language —
|
| 82 |
+
184 concepts across 51 languages,
|
| 83 |
+
9,375 decisions in all, every one of them carrying the amount of
|
| 84 |
+
review that stands behind it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
+
Programming languages are written in English. `if`, `while`, `class`,
|
| 87 |
+
`import`: a developer who does not read English is memorising shapes. Choosing
|
| 88 |
+
what those concepts are called in someone's own language is the work, and
|
| 89 |
+
choosing *well* is a question only speakers of that language can settle.
|
| 90 |
|
| 91 |
+
This is a **growing dataset**. A rendering here is the current answer, not a
|
| 92 |
+
final one: renderings change as speakers of the language weigh in, and each
|
| 93 |
+
one's rung records how much of that has happened yet. Treat a revision as a
|
| 94 |
+
snapshot of the decisions to date.
|
| 95 |
|
| 96 |
+
Renderings are keyed by content-addressed uids (`opt_` + 24 hex) shared with
|
| 97 |
+
[`legesher/language-corpus`](https://huggingface.co/datasets/legesher/language-corpus),
|
| 98 |
+
so an `option_uid` resolves there to every alternative that was proposed for
|
| 99 |
+
that concept and every endorsement attached to them.
|
| 100 |
+
|
| 101 |
+
## Languages
|
| 102 |
+
|
| 103 |
+
All 51 languages in this export, with where each one stands
|
| 104 |
+
on the maturity ladder. The primary-subtag rollup in the frontmatter is what
|
| 105 |
+
the Hub indexes for search; this is the full list, script subtags and all.
|
| 106 |
+
|
| 107 |
+
| Tag | Language | Native name | Renderings | `machine` | `experimental` | `reviewed` | `official` |
|
| 108 |
+
| --- | --- | --- | ---: | ---: | ---: | ---: | ---: |
|
| 109 |
+
| `am` | Amharic | አማርኛ | 184 | 184 | 0 | 0 | 0 |
|
| 110 |
+
| `ar` | Arabic | العربية | 184 | 184 | 0 | 0 | 0 |
|
| 111 |
+
| `bn` | Bengali | বাংলা | 184 | 184 | 0 | 0 | 0 |
|
| 112 |
+
| `bs` | Bosnian | Bosanski | 184 | 184 | 0 | 0 | 0 |
|
| 113 |
+
| `ca` | Catalan | Català | 184 | 184 | 0 | 0 | 0 |
|
| 114 |
+
| `cs` | Czech | Čeština | 184 | 184 | 0 | 0 | 0 |
|
| 115 |
+
| `cy` | Welsh | Cymraeg | 184 | 184 | 0 | 0 | 0 |
|
| 116 |
+
| `da` | Danish | Dansk | 183 | 183 | 0 | 0 | 0 |
|
| 117 |
+
| `de` | German | Deutsch | 183 | 183 | 0 | 0 | 0 |
|
| 118 |
+
| `el` | Greek | Ελληνικά | 184 | 184 | 0 | 0 | 0 |
|
| 119 |
+
| `en` | English | English | 184 | 184 | 0 | 0 | 0 |
|
| 120 |
+
| `es` | Spanish | Español | 184 | 184 | 0 | 0 | 0 |
|
| 121 |
+
| `fa` | Persian | فارسی | 184 | 184 | 0 | 0 | 0 |
|
| 122 |
+
| `fi` | Finnish | Suomi | 183 | 183 | 0 | 0 | 0 |
|
| 123 |
+
| `fr` | French | Français | 184 | 184 | 0 | 0 | 0 |
|
| 124 |
+
| `ga` | Irish | Gaeilge | 184 | 184 | 0 | 0 | 0 |
|
| 125 |
+
| `gd` | Scottish Gaelic | Gàidhlig | 184 | 184 | 0 | 0 | 0 |
|
| 126 |
+
| `gl` | Galician | Galego | 184 | 184 | 0 | 0 | 0 |
|
| 127 |
+
| `gu` | Gujarati | ગુજરાતી | 184 | 184 | 0 | 0 | 0 |
|
| 128 |
+
| `he` | Hebrew | עברית | 184 | 184 | 0 | 0 | 0 |
|
| 129 |
+
| `hi` | Hindi | हिन्दी | 183 | 183 | 0 | 0 | 0 |
|
| 130 |
+
| `hr` | Croatian | Hrvatski | 184 | 184 | 0 | 0 | 0 |
|
| 131 |
+
| `hu` | Hungarian | Magyar | 184 | 184 | 0 | 0 | 0 |
|
| 132 |
+
| `id` | Indonesian | Bahasa Indonesia | 184 | 184 | 0 | 0 | 0 |
|
| 133 |
+
| `it` | Italian | Italiano | 184 | 184 | 0 | 0 | 0 |
|
| 134 |
+
| `ja` | Japanese | 日本語 | 184 | 184 | 0 | 0 | 0 |
|
| 135 |
+
| `kn` | Kannada | ಕನ್ನಡ | 184 | 184 | 0 | 0 | 0 |
|
| 136 |
+
| `ko` | Korean | 한국어 | 184 | 184 | 0 | 0 | 0 |
|
| 137 |
+
| `lv` | Latvian | Latviešu | 184 | 184 | 0 | 0 | 0 |
|
| 138 |
+
| `mk` | Macedonian | Македонски | 183 | 183 | 0 | 0 | 0 |
|
| 139 |
+
| `ml` | Malayalam | മല��ാളം | 184 | 184 | 0 | 0 | 0 |
|
| 140 |
+
| `mn-Cyrl` | Mongolian | Монгол | 184 | 184 | 0 | 0 | 0 |
|
| 141 |
+
| `ms` | Malay | Bahasa Melayu | 184 | 184 | 0 | 0 | 0 |
|
| 142 |
+
| `my` | Burmese | မြန်မာ | 184 | 184 | 0 | 0 | 0 |
|
| 143 |
+
| `nb` | Norwegian | Norsk | 184 | 184 | 0 | 0 | 0 |
|
| 144 |
+
| `nl` | Dutch | Nederlands | 184 | 184 | 0 | 0 | 0 |
|
| 145 |
+
| `pl` | Polish | Polski | 184 | 184 | 0 | 0 | 0 |
|
| 146 |
+
| `pt` | Portuguese | Português | 183 | 183 | 0 | 0 | 0 |
|
| 147 |
+
| `ro` | Romanian | Română | 184 | 184 | 0 | 0 | 0 |
|
| 148 |
+
| `ru` | Russian | Русский | 183 | 183 | 0 | 0 | 0 |
|
| 149 |
+
| `si` | Sinhala | සිංහල | 184 | 184 | 0 | 0 | 0 |
|
| 150 |
+
| `sr-Cyrl` | Serbian | Српски | 184 | 184 | 0 | 0 | 0 |
|
| 151 |
+
| `su` | Sundanese | Basa Sunda | 184 | 184 | 0 | 0 | 0 |
|
| 152 |
+
| `sv` | Swedish | Svenska | 184 | 184 | 0 | 0 | 0 |
|
| 153 |
+
| `te` | Telugu | తెలుగు | 183 | 183 | 0 | 0 | 0 |
|
| 154 |
+
| `th` | Thai | ไทย | 183 | 183 | 0 | 0 | 0 |
|
| 155 |
+
| `tr` | Turkish | Türkçe | 184 | 184 | 0 | 0 | 0 |
|
| 156 |
+
| `ur` | Urdu | اردو | 184 | 183 | 1 | 0 | 0 |
|
| 157 |
+
| `uz-Latn` | Uzbek | O'zbek | 184 | 184 | 0 | 0 | 0 |
|
| 158 |
+
| `vi` | Vietnamese | Tiếng Việt | 184 | 184 | 0 | 0 | 0 |
|
| 159 |
+
| `zh-Hans` | Chinese | 中文 | 184 | 153 | 31 | 0 | 0 |
|
| 160 |
+
|
| 161 |
+
The same table is the `locales` config, so you can sort and filter it rather
|
| 162 |
+
than read it.
|
| 163 |
+
|
| 164 |
+
## The maturity ladder
|
| 165 |
+
|
| 166 |
+
Every rendering carries a rung. It is the honest answer to "how much human
|
| 167 |
+
judgement is behind this word?", and it is the most important column here.
|
| 168 |
|
| 169 |
### `machine`
|
| 170 |
|
| 171 |
Selected without anyone judging this particular word — carried over from a
|
| 172 |
shipped language pack, or picked by a batch job resolving a collision.
|
| 173 |
|
| 174 |
+
It is not arbitrary. Every rendering clears mechanical gates before it can be
|
| 175 |
+
selected at all: it has to be a valid identifier in its language, stable under
|
| 176 |
the Unicode normalisation the interpreter applies, and free of collisions with
|
| 177 |
other terms in its own vocabulary. What no one has asked is whether it is the
|
| 178 |
*right* word — whether a programmer who speaks that language would recognise
|
| 179 |
it, or would wince.
|
| 180 |
|
| 181 |
+
**Treat these as proposals.**
|
| 182 |
|
| 183 |
### `experimental`
|
| 184 |
|
| 185 |
A person has looked at this specific rendering and kept it, replaced it, or
|
| 186 |
+
rewritten it — a maintainer curating a batch, or a native speaker of the
|
| 187 |
+
language making a correction.
|
| 188 |
|
| 189 |
One informed opinion stands behind it. That is meaningfully more than
|
| 190 |
+
`machine` and meaningfully less than agreement, which is why it is its own
|
| 191 |
+
rung rather than folded into either neighbour.
|
| 192 |
|
| 193 |
### `reviewed`
|
| 194 |
|
| 195 |
Native speakers have signed off, and more than one, so the rendering reflects
|
| 196 |
agreement rather than a single person's preference.
|
| 197 |
|
| 198 |
+
The risk with one reviewer is not that they are wrong — it is that they are
|
| 199 |
+
unrepresentative. A regional form, a register that reads formal or childish
|
| 200 |
+
somewhere else, a loanword one community has absorbed and another rejects.
|
| 201 |
+
More than one voice is what turns a rendering into a *shared* answer.
|
|
|
|
| 202 |
|
| 203 |
**How many voices, and how varied, is still being defined.** We would rather
|
| 204 |
+
say so than publish a threshold we have not actually set.
|
| 205 |
|
| 206 |
### `official`
|
| 207 |
|
|
|
|
| 209 |
|
| 210 |
Screening is a separate axis from accuracy: a rendering can be a perfectly
|
| 211 |
correct translation and still be the wrong word to ship — offensive in another
|
| 212 |
+
register, unfortunate beside a neighbouring term, or colliding with something
|
| 213 |
in the language it should not. `official` means both questions were asked and
|
| 214 |
answered by people with standing to answer them.
|
| 215 |
|
|
|
|
| 218 |
|
| 219 |
### Where things stand today
|
| 220 |
|
| 221 |
+
0 renderings are at `reviewed` or above. 32 have had a
|
| 222 |
+
native speaker's attention, one reviewer each, which is why they sit at
|
| 223 |
+
`experimental`. The remaining 9,343 are machine or maintainer
|
| 224 |
+
selections that **no native speaker has looked at yet.**
|
| 225 |
|
| 226 |
+
We publish at this stage deliberately. A terminology set developed privately
|
| 227 |
+
and released once it is "ready" has already made every decision without the
|
| 228 |
+
people it is for. Publishing early makes the current state visible, citable
|
| 229 |
+
and arguable, while it is still genuinely open.
|
| 230 |
|
| 231 |
+
A rung describes one rendering. It says nothing about the language pack that
|
| 232 |
+
rendering ships in.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
|
| 234 |
+
## Configs
|
|
|
|
| 235 |
|
| 236 |
+
Two, joined on `locale`.
|
| 237 |
|
| 238 |
+
**`canon`** — one row per decision.
|
| 239 |
|
| 240 |
| Column | Meaning |
|
| 241 |
| --- | --- |
|
|
|
|
| 250 |
| `decided_at` | When the selection was made |
|
| 251 |
|
| 252 |
`identity_ok` marks a deliberate cognate or loanword — `stopiteration` in
|
| 253 |
+
Danish, `Lambda` in German. It does not mean "not translated yet"; without it
|
| 254 |
+
a reader could not tell a considered borrowing from an oversight.
|
|
|
|
|
|
|
| 255 |
|
| 256 |
+
**`locales`** — one row per language: `locale`, `language_name`,
|
| 257 |
+
`native_name`, `rtl`, `decisions`, a count at each rung, and
|
| 258 |
+
`native_reviewed`. Language attributes live only here, so a language is
|
| 259 |
+
described in exactly one place.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
|
| 261 |
+
## Who decides, and how to take part
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
|
| 263 |
+
`decided_by` records the **role** that made a selection, never the person:
|
| 264 |
+
`automated` for migrations and batch jobs, `maintainer` for curation,
|
| 265 |
+
`native-reviewer` for a speaker of the language. Contributor identities are
|
| 266 |
+
not published in this dataset. Endorsements, attribution and withdrawal are
|
| 267 |
+
handled through
|
|
|
|
| 268 |
[`legesher/language-corpus`](https://huggingface.co/datasets/legesher/language-corpus),
|
| 269 |
which is the artifact that carries them.
|
| 270 |
|
| 271 |
+
The role answers a different question from the rung, and the two are
|
| 272 |
+
deliberately independent: `status` says **how much** review stands behind a
|
| 273 |
+
rendering, `decided_by` says **who** made the most recent call. A single
|
| 274 |
+
native reviewer is visible here without moving the rung, because their
|
| 275 |
+
judgement is real and is not yet a consensus.
|
| 276 |
+
|
| 277 |
+
If you program in one of these languages, or speak one not yet covered, these
|
| 278 |
+
renderings want your eyes. Corrections, endorsements and objections all move a
|
| 279 |
+
rendering up the ladder — and disagreement is a contribution, not an obstacle.
|
| 280 |
|
| 281 |
+
## Licence and citation
|
|
|
|
|
|
|
|
|
|
| 282 |
|
| 283 |
+
Released under **Apache-2.0**. Legesher holds the compilation right in this
|
| 284 |
+
dataset and licenses it on those terms; the individual renderings arrive from
|
| 285 |
+
the corpus, whose own licence and attribution notices govern the contributed
|
| 286 |
+
parts.
|
| 287 |
|
| 288 |
```bibtex
|
| 289 |
@misc{legesher_language_canon,
|