Repository navigation
Description
fr.additionalRules[2] (the impersonal-register rule) generalises a correction the French editor never made, and the engine now rewrites every exercise instruction as a statement he would not write.
What the editor actually did
Across both native-review rounds (QuantEcon/lecture-python-programming.fr#24/#25 and #77/#78; exercise statements and hints, solutions excluded):
| Category | Converted to impersonal | Kept as vous-imperative |
|---|---|---|
| Task instructions (« Écrivez une fonction… ») | 0 | 26 of 26 — on 5 he rewrote the line and chose the imperative again |
| Procedure steps (« payez un dollar ») | 0 | 6 of 6 (3 rewritten, imperative kept) |
| Parameter set-ups | 1 (« Posez |
1 (« Utilisez |
| "Your task is to…" framings | 2 (→ « L'objectif de cet exercice est de… ») | 1 (« Votre première tâche est de… ») |
The rule's provenance comment (language-config.ts L51–54: "every rule generalises a correction he made at least twice") is false for its set-up clause (one correction), and its lead clause — "impersonal academic register … rather than calquing the English direct address" — describes a change he made to formulas, not to instructions.
What the engine does now
In nine fresh init draws at v0.29.2 (claude-sonnet-5) of functions, oop_intro and names: 0 of 24 instruction renderings kept the imperative (« on écrit » 7, « on écrira » 14, « on affiche » 3), and 0 of 12 procedure steps did. « On affiche une liste des méthodes » reads as a description, not a task. The reviewer is told to "DO flag violations" of these rules (reviewer.ts:1475), and 2 of 5 reviews flagged his imperatives.
Proposed replacement (to measure before shipping)
'Keep the direct address of exercise instructions: an instruction to the reader stays in the vous-imperative ("Écrivez une fonction…", "Tracez…", "Utilisez une boucle for…", "Réécrivez…"), never a statement such as "On écrit une fonction…", "On écrira…" or "On affiche…". Two English exercise formulas are calques and do change: a parameter set-up "Set $T = 200$" becomes "On pose $T = 200$" (never "Posez $T = 200$"), and "Your task is to…" / "Your exercise is to…" becomes "L\'objectif de cet exercice est de…" (not "Votre tâche consiste à…")',
It keeps On pose $T = 200$, which language-config.test.ts:60 asserts. Also correct the provenance comment, the "drop chatty asides" example (in fr#24 he rewrote « prenez votre temps… » as the imperative « Prenez le temps d'examiner chaque étape du code » rather than dropping it), and docs/user/language-config.md.
Measurement plan (≥ 12 draws per arm, pre-registered)
- Arm A =
5f74d74; arm B = the same with only[2]replaced. 12 draws per arm per lecture onfunctions.md,oop_intro.mdandpython_by_example.md— the last is the only fixture with set-ups and framings. - Pass: B keeps ≥ 90% of instructions imperative (A: 0/24); "Set
$T=200$ " → « On pose » in ≥ 11/12; "Your first task" not « Votre (première) tâche » in ≥ 11/12; the overshoot regex\b[Oo]n (écrit|écrira|réécrit|réécrira|affiche|affichera|utilise|utilisera|trace|tracera)\bat 0 in ≥ 11/12 exercise blocks. - One review pass confirming « Écrivez » draws no terminology finding; the blind pairwise judge for non-regression elsewhere.
The editor has been asked on fr#77 whether set-ups should be impersonal generally; the change does not depend on the answer.
Evidence: QuantEcon/project-translation reports/2026-09-23-fr-round2-editor-review-disposition.md, §5 M1.
Activity
mmcky commentedon Sep 23, 2026
Measurement, 2026-09-23: the narrowed rule passes three of the four pre-registered criteria; the fourth fails on one phrase the wording does not name.
Arm A =
16e50f6(v0.29.3); arm B = the same with onlyfr.additionalRules[2]replaced by the text in the issue body.translate init -f, claude-sonnet-5, built-in glossary, Englishb0b0b56; 12 draws per arm per lecture (72 in total). Scored on exercise statements (solutions excluded) with a scorer calibrated both ways first: the editor's merged text scores 100% imperative with 0 overshoot (functions12,oop_intro1,python_by_example4), and this morning's three v0.29.2 draws score 0% with 24 overshoots.Per lecture, overshoots in A:
functions84 (« On écrit / On écrira… »),oop_intro12 (« on affiche »),python_by_example3; B has none in any draw.Criterion 3. "Your first task is to simulate and plot…" (
python_by_example.md:452) came out in B as « Votre première tâche consiste à… » in 6/12, « Votre première tâche est de… » in 2/12 and « L'objectif de cet exercice est de… » in 4/12. The replacement text names "Your task is to…" / "Your exercise is to…" but not "Your first task…", and "keep the direct address" reads as licence. Against the editor rather than the criterion, the picture is narrower: in round 1 he converted exactly the « … consiste à » framing twice and kept « Votre première tâche est de… » on this very line. So the real residual is the « consiste à » calque in 6/12, not the second person.Proposed next iteration (one phrase): extend the framing clause to "Your task is to…" / "Your first task is to…" / "Your exercise is to…", with « consiste à » named as the calque to avoid, e.g.
…becomes "L'objectif de cet exercice est de…" (or, for a numbered first step, "Votre première tâche est de…"), never "Votre tâche consiste à…". Then re-runpython_by_exampleonly (12 per arm) plus the two outstanding checks from the plan: the blind pairwise judge for non-regression outside the exercises, and one review pass confirming « Écrivez » draws no terminology finding. The editor has also been asked on QuantEcon/lecture-python-programming.fr#77 whether set-ups should be impersonal generally.Parity refusals: B
python_by_exampled3 was refused twice (directive count 63 → 62, the whole-document fence-wrap signature of #203) and delivered on the third attempt; A had none. 2/14 vs 0/12 is within the known flake.Draws, scorer, runner and the arm-B diff: QuantEcon/project-translation
research/2026-09-23-fr-round2-draws/arm327/.dev: STATE.md — v0.29.3 released; page re-verified 2026-09-23 (#330)
mmcky commentedon Oct 12, 2026
More evidence, 2026-10-12: two lectures outside the arm show the current rule's overshoot in another form, the infinitive.
Six French drafts at v0.29.4 (
claude-sonnet-5, default localisation), three each ofpython_essentials.mdandpython_oop.md, against the seed they replace. Exercise-statement lines were counted with a simple pattern, not the arm's calibrated scorer:Examples: « Écrire une fonction
ptelle quep(x, coeff)calcule… » for "Write a functionpsuch that…", and « 1. Dériver le polynôme… ». The editor kept « Écrivez » on the one such line they edited in this round (QuantEcon/lecture-python-programming.fr#93, item 4), as on every instruction in rounds 1 and 2.Criterion 1 (the share kept imperative) already counts these, so this is more evidence for the narrowed rule rather than a new defect. Criterion 4's overshoot pattern lists only « On » + verb forms, though, and an infinitive draft would pass it. Suggest adding a line that opens with a bare infinitive when the next iteration is scored, for example
^\s*(\d+\.\s*)?(d'|de )?(Écrire|Utiliser|Tracer|Calculer|Dériver|Évaluer|Modifier|Réécrire)\b.Drafts: QuantEcon/project-translation
research/2026-10-12-fr-round3-draws/.