docs(readme): align with canonical source-of-truth (cond-4 framing, cond-3 vs cond-4 distinction)

#7
Files changed (1) hide show
  1. README.md +23 -7
README.md CHANGED
@@ -59,9 +59,20 @@ dataset_info:
59
 
60
  # Language Decoded — Community Code
61
 
62
- Natively-authored multilingual code for the **Language Decoded** project (part of [Cohere's Tiny Aya Expedition](https://aya.for.ai)). This dataset contains code written by developers in non-English programming languages and code with significant CJK content — **not** mechanically transpiled from English.
63
 
64
- This data serves as a component of **Condition 3** ("Mixed Native Sources") and **Condition 4** ("Strictly Native Code") in the Language Decoded experiment, which tests whether native-language code improves multilingual reasoning beyond keyword swapping alone.
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  ## Available Configs
67
 
@@ -69,6 +80,8 @@ This data serves as a component of **Condition 3** ("Mixed Native Sources") and
69
  | ------ | -------- | ----- | --------------------------------------------- |
70
  | `zh` | Chinese | 3,486 | Natively Chinese-authored code from 5 sources |
71
 
 
 
72
  ## Schema
73
 
74
  | Column | Type | Description |
@@ -133,22 +146,25 @@ high_quality = train.filter(lambda x: x["quality_tier"] in ("A", "B"))
133
 
134
  ## Relationship to Other Datasets
135
 
136
- - **[legesher/language-decoded-data](https://huggingface.co/datasets/legesher/language-decoded-data)**: The main experiment dataset with transpiled code (conditions 1–2), blended datasets (condition 3), and strictly native code (condition 4). Conditions 3 and 4 use native code from this repo.
137
- - This repo stores the **raw native code** with full metadata. The blended and native training datasets live in `language-decoded-data`.
 
 
138
 
139
  ## Limitations
140
 
141
  - **Chinese only**: Currently limited to Chinese-language code. Native code for Spanish and Urdu is not yet available.
142
  - **License uncertainty**: Some files (particularly from `thestack`) have `UNKNOWN` licenses. These were included because they appeared in The Stack's permissive-license subset, but individual file licenses could not always be verified.
143
  - **Quality variation**: Quality tiers are assigned heuristically based on CJK content ratio, file size, and structural indicators. Tier D files may contain minimal native-language content.
144
- - **Non-Python files included**: Unlike the transpiled datasets (conditions 12), this dataset includes code in multiple programming languages (Python, Java, JavaScript, Wenyan, Qi, Mulan, etc.), reflecting the reality of native-language programming ecosystems.
145
  - **CJK-heavy bias**: Files were selected partly based on CJK character presence, which may over-represent code with Chinese comments/strings rather than code with Chinese-language syntax.
 
146
 
147
  ## Citation
148
 
149
  ```bibtex
150
  @misc{language-decoded-2026,
151
- title={Language Decoded: Investigating Language-Dependent vs. Structure-Dependent Reasoning Benefits of Code},
152
  author={Madison Edgar and Saad Ahmed Bazaz and Tom Sherborne and Rashik Shahjahan and Khojasteh Mirza and Sarah Jawaid and Rafay Mustafa and Sohaib Ahmed Bazaz},
153
  year={2026},
154
  publisher={Hugging Face},
@@ -158,4 +174,4 @@ high_quality = train.filter(lambda x: x["quality_tier"] in ("A", "B"))
158
 
159
  ## License
160
 
161
- Apache 2.0
 
59
 
60
  # Language Decoded — Community Code
61
 
62
+ Natively-authored multilingual code for the **Language Decoded** project (part of [Cohere's Tiny Aya Expedition](https://aya.for.ai)). This dataset contains code written by developers in non-English programming languages and code with significant CJK content — **not** mechanically transpiled or LLM-translated from English.
63
 
64
+ > **Experiment and proposed paper title:** _Language Decoded: Exploring the Impact of Native Code on Multilingual Models_
65
+
66
+ This data serves as the corpus for **Condition 3** ("Mixed Native Sources") and is intended to serve as the corpus for **Condition 4** ("Community-Contributed Native Code") in the Language Decoded experimental ladder. See [legesher/language-decoded-experiments](https://huggingface.co/datasets/legesher/language-decoded-experiments) for the canonical project description.
67
+
68
+ ## How Condition 3 and Condition 4 differ
69
+
70
+ Both conditions deal with native-language code, but they ask different questions:
71
+
72
+ - **Condition 3 ("Mixed Native Sources")** uses code pulled from real-world public-source repositories — incidentally available code that humans wrote in or with the target language. Phase 3 trained `condition-3-zh-5k` from data assembled here.
73
+ - **Condition 4 ("Community-Contributed Native Code")**'s design goal is **code whose problem-solving logic is itself native** — written as if a native speaker were approaching the problem, not English code that was later translated. Currently pending sufficient direct community contributions to assemble a stable training corpus; in neither Phase 2 nor Phase 3 evaluation. Cond-5's fully-translated data served as Phase 3's practical proxy because gathering native-authored code at scale proved difficult.
74
+
75
+ If you'd like to contribute Python (or other-language) code where you approached the problem in your native target language, the contribution interface is the [`legesher/legesher-native-code`](https://huggingface.co/spaces/legesher/legesher-native-code) HF Space — contributions there feed into the cond-4 corpus.
76
 
77
  ## Available Configs
78
 
 
80
  | ------ | -------- | ----- | --------------------------------------------- |
81
  | `zh` | Chinese | 3,486 | Natively Chinese-authored code from 5 sources |
82
 
83
+ Native code for Spanish and Urdu is not yet available.
84
+
85
  ## Schema
86
 
87
  | Column | Type | Description |
 
146
 
147
  ## Relationship to Other Datasets
148
 
149
+ - **[legesher/language-decoded-data](https://huggingface.co/datasets/legesher/language-decoded-data)**: The main training data hub. Holds the per-condition training corpora (cond-1 raw English, cond-2 Legesher-transpiled, cond-3 mixed native sources, cond-4 native-authored, cond-5 fully translated via `c4ai-aya-expanse-32b`).
150
+ - **[legesher/language-decoded-experiments](https://huggingface.co/datasets/legesher/language-decoded-experiments)**: The canonical project source-of-truth experiment tracking, evaluation results, analysis, and the full experimental ladder.
151
+ - **[legesher/language-decoded-lora](https://huggingface.co/legesher/language-decoded-lora)**: LoRA adapters trained on the per-condition corpora.
152
+ - This repo stores the **raw native code** with full metadata. The blended and native training datasets used for fine-tuning live in `language-decoded-data`.
153
 
154
  ## Limitations
155
 
156
  - **Chinese only**: Currently limited to Chinese-language code. Native code for Spanish and Urdu is not yet available.
157
  - **License uncertainty**: Some files (particularly from `thestack`) have `UNKNOWN` licenses. These were included because they appeared in The Stack's permissive-license subset, but individual file licenses could not always be verified.
158
  - **Quality variation**: Quality tiers are assigned heuristically based on CJK content ratio, file size, and structural indicators. Tier D files may contain minimal native-language content.
159
+ - **Non-Python files included**: Unlike the Phase 3 training corpora for cond-1, cond-2, and cond-5 — which are Python-only — this dataset includes code in multiple programming languages (Python, Java, JavaScript, Wenyan, Qi, Mulan, etc.). This reflects the reality of native-language programming ecosystems and is intentional for cond-3.
160
  - **CJK-heavy bias**: Files were selected partly based on CJK character presence, which may over-represent code with Chinese comments/strings rather than code with Chinese-language syntax.
161
+ - **Native-authored ≠ scraped**: Although this corpus comes closer to native-authored code than the transpiled (cond-2) or fully-translated (cond-5) corpora, the inclusion criteria are based on CJK presence and source provenance, not on whether the original author was thinking in the target language while writing the code. Cond-4 will eventually distinguish that more cleanly via direct contribution.
162
 
163
  ## Citation
164
 
165
  ```bibtex
166
  @misc{language-decoded-2026,
167
+ title={Language Decoded: Exploring the Impact of Native Code on Multilingual Models},
168
  author={Madison Edgar and Saad Ahmed Bazaz and Tom Sherborne and Rashik Shahjahan and Khojasteh Mirza and Sarah Jawaid and Rafay Mustafa and Sohaib Ahmed Bazaz},
169
  year={2026},
170
  publisher={Hugging Face},
 
174
 
175
  ## License
176
 
177
+ Apache 2.0