Skip to content

Bring the Phillips lectures up to date so the QuantEcon/lecture-python.myst#1144 sync can be carried #331

Open

Description

@mmcky

Goal

Bring the edition's Phillips lectures up to date, so that the three lectures whose sync failed for QuantEcon/lecture-python.myst#1144 can be carried: phillips_escaping_nash, phillips_learning and phillips_priors. The sync failures are recorded in QuantEcon/lecture-python.myst#1146 (for #1144) and QuantEcon/lecture-python.myst#1107 (for #1105).

Why a resync does not work

The sync updates a lecture section by section against the edition's copy. For phillips_escaping_nash the English had 13 sections before QuantEcon/lecture-python.myst#1144 and 14 after, but the zh-cn copy has 12, because the edition still predates QuantEcon/lecture-python.myst#1105. The sections cannot be paired, and the structural-parity check rejects the output (67 directives in the source, 32 in the output).

A \translate-resync on #1144 repeats this failure exactly. It would also re-translate the five lectures already in #330.

Order of work

Step Work State on 2026-11-23
1 Merge #308 (lq_mean_field_games) and #311 (bounded_rationality) Both mergeable, with green preview and review
2 Carry the three lectures whose sync failed for QuantEcon/lecture-python.myst#1105 (CLI, below) Never carried
3 Merge #312, the 13 Phillips lectures from QuantEcon/lecture-python.myst#1105 Preview fails until steps 1 and 2 land
4 Carry the three Phillips lectures from QuantEcon/lecture-python.myst#1144 (CLI, below) Needs #312 merged

Why #312's preview fails (run 41610540915): six of its lectures link to targets the edition does not have yet.

Its review check fails for a different reason. The PR is too large for one review request (1,189,630 tokens against the 1,000,000 limit), which is a tool limit, not a problem with the translation.

Step 2, the three lectures from #1105:

Run step 2 on #312's branch, after rebasing it on main once #308 and #311 merge, and push the results to that branch. phillips_drifts_volatilities_2 links into the other Phillips lectures, so a separate PR for it would fail its preview until #312 merges. Doing all of step 2 on #312's branch gives one preview that covers everything.

These commands need ANTHROPIC_API_KEY. The paths are examples. Preview each command with --dry-run first.

S=~/work/quantecon/lecture-python.myst    # source at origin/main
T=~/work/quantecon/lecture-python.zh-cn   # #312's branch, rebased on main

npx translate init -s $S -t $T --target-language zh-cn -f phillips_drifts_volatilities_2.md
npx translate forward -s $S -t $T -f prospects_bounded_rationality.md
npx translate forward -s $S -t $T -f olg_adaptive_money.md

Step 4, after #312 merges. Run on main; add --github QuantEcon/lecture-python.zh-cn to get one PR per file.

npx translate forward -s $S -t $T -f phillips_escaping_nash.md
npx translate forward -s $S -t $T -f phillips_learning.md
npx translate forward -s $S -t $T -f phillips_priors.md

forward regenerates the whole lecture. If any of these lectures has been reviewed by a native speaker, carry the change into it by hand instead.

Related backlog

Done when

Activity

  1. changed the title [-]Bring the Phillips lectures up to date so #1144's sync can be carried (zh-cn#312 chain)[/-] [+]Bring the Phillips lectures up to date so the QuantEcon/lecture-python.myst#1144 sync can be carried[/+] on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions