Skip to content

🌐 [translation-sync] [ak2, ak_aiyagari, two_computation] Add figure captions and lw=2 - #314

Open
mmcky wants to merge 6 commits into
mainfrom
translation-sync-2026-11-09T01-10-06-pr-1081
Open

mmcky wants to merge 6 commits into
mainfrom
translation-sync-2026-11-09T01-10-06-pr-1081

Conversation

@mmcky

@mmcky mmcky commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Automated Translation Sync

This PR contains automated translations from QuantEcon/lecture-python.myst.

Source PR

#1081 - [ak2, ak_aiyagari, two_computation] Add figure captions and lw=2

Files Updated

  • ✏️ lectures/ak2.md
  • ✏️ .translate/state/ak2.md.yml
  • ✏️ lectures/ak_aiyagari.md
  • ✏️ .translate/state/ak_aiyagari.md.yml
  • ✏️ lectures/two_computation.md
  • ✏️ .translate/state/two_computation.md.yml

Details

  • Source Language: en
  • Target Language: zh-cn
  • Model: claude-sonnet-5

This PR was created automatically by the translation action.

@mmcky mmcky added action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation labels Nov 9, 2026
Copilot AI balanced review requested due to automatic review settings November 9, 2026 01:10
@netlify

netlify Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit b512dcb
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6af11d7999d767fac18ba62e
😎 Deploy Preview https://deploy-preview-314--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

✅ Translation Quality Review

Verdict: PASS | Model: claude-sonnet-5 | Date: 2026-11-09
Routing: editor — 1 major finding(s); 2 minor finding(s) in gating categories (accuracy/terminology/syntax/diff-check/other); accuracy 8 below floor 9; terminology 8 below floor 9; fluency 7 below floor 8
Shadow gate: would NOT auto-merge (recorded only; no action taken)


📝 Translation Quality

Criterion Score
Accuracy 8/10
Fluency 7/10
Terminology 8/10
Formatting 8/10
Overall 7.8/10

Summary: 翻译整体质量较高,准确传达了原文的经济学模型设定、数学推导和代码逻辑,专业术语基本遵循术语表且前后一致。存在少量可改进之处:个别句子的衔接稍显生硬(如老年人'负储蓄'的表达未完全准确体现),以及'现收现付制'译法在全篇中略有不一致,但均为轻微问题,不影响整体理解和学术严谨性。未发现破坏性的 Markdown/MyST 语法错误。 数学公式、代码块和 MyST 指令格式保留完整,未出现语法错误 专业术语如'世代交叠模型'、'稳态'、'封闭经济'、'小型开放经济'等与术语表高度一致 长难句的处理整体较为清晰,保留了原文的逻辑结构和学术语域 标题翻译准确且与 translation 元数据中的 headings 映射保持一致

Suggestions:

  • [major · accuracy] lectures/ak2.md — 设定 / Setting section: 原文 'At time $t$ a representative old person coexists with a representative young person who will become an old person at time $t+1$.' 被翻译为两句,其中第二句独立成句并丢失了与前一句的紧密承接关系,且译文中出现了排版问题(缺少空行/换行符处理不当),如 '个年轻人。\n在时点 $t$' 之间的分段显得突兀,可能是机械分行导致。 → 将两句合并或使用更自然的连接词,例如:'在每个时点 $t \geq 0$,一位代表性老年人与一位代表性年轻人共存,这位年轻人将在时点 $t+1$ 成为老年人。'
  • [minor · fluency] lectures/ak2.md — 设定 section, population constancy sentence: 译文中部分句子使用了全角逗号和句号与原文结构机械对应,导致个别句子稍显生硬,例如'老年人进行消费和储蓄,但不工作。'应为'老年人进行负储蓄(dissave)并消费,但不工作','dissave'被简单译为'进行消费和储蓄',未能准确传达'负储蓄'(即动用资产)的含义。 → 将 'An old person dissaves and consumes, but does not work.' 译为 '老年人动用储蓄(负储蓄)进行消费,但不工作。'
  • [minor · terminology] lectures/ak2.md — 实验2:政府资产积累 section: 术语 'crowding out'(挤出效应)在原文中未明确出现,但译文中在练习3解答部分使用了'挤出'一词,与其他章节中'crowding out'译为'挤出效应'保持一致,这是正确的,但在正文 Experiment 2 部分描述政府资产积累挤出私人储蓄的效果时,译文未使用'挤出'这一术语,而是采用了较为冗长的意译,建议统一术语以增强一致性。 → 可在'政府资产积累'部分提及'挤出效应'一词以保持术语一致性,例如:'政府积累资产实际上对私人储蓄产生了挤出效应的反向作用'。
  • [minor · fluency] lectures/ak_aiyagari.md — 概述 section: '个体受到无法完全投保的特殊劳动生产率冲击' 中 '特殊' 翻译 'idiosyncratic' 不够精准,通常经济学文献中译为'特异性'或'个体特质性'更为常见和准确。 → 改为 '个体受到无法完全投保的特异性劳动生产率冲击'
  • [minor · terminology] lectures/two_computation.md — 环境 / Demographics section: 'pay-as-you-go' 被译为 '非融资(现收现付)制' 和 '现收现付制',两种译法在文中交替出现(如 Overview 中的 '非融资(现收现付)' 和结论部分的 '现收现付制'),虽然基本一致,但首次引入时的括注方式与后续使用不完全统一,建议统一为'现收现付制'并在首次出现时加括注英文原文。 → 统一使用'现收现付制(pay-as-you-go)'并在全文中保持一致。

🔍 Diff Quality

Check Status
Scope Correct ✅
Position Correct ✅
Structure Preserved ✅
Heading-map Correct ✅
Overall 10/10

Summary: The translation sync correctly updated only the three intended target files, preserved section order and document structure, and updated the heading-map and figure captions consistently with the English source changes, with only minor extra figure-caption additions that don't affect structure or scope.

Issues:

  • In ak2.md, several new figure captions/names were added (e.g. ak2_exp1_tax_cut, ak2_exp1_two_rates, ak2_exp2_expenditure_cut, ak2_exp3_temporary_cut, ak2_fixed_point_iterations, ak2_exp1_ak2, ak2_exp1_lump_sum, ak2_exp4_social_security) that do not exist in the English source, which only added mystnb captions to a subset of plots (and kept most unchanged). This is extra structural content beyond a pure translation sync, though it does not break structure or scope since it's still within the same code cells/sections.
  • Similarly in ak_aiyagari.md and two_computation.md, numerous new mystnb figure caption/name blocks were added to many plot cells that did not have them in the original Chinese document, going beyond mirroring the English source's figure-caption additions one-to-one in some spots (though English source also added many captions, so this is largely consistent).

This review was generated automatically by action-translation review mode.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟡 Changes recommended

The review flags remaining inconsistencies in the zh-cn lecture notes, specifically multiple figure captions in lectures/ak_aiyagari.md that are still in English and should be translated to match the document’s Chinese captions.

1 open issue
What changed in this PR

Synchronizes the zh-cn translations of three lectures with upstream lecture-python.myst PR #1081, primarily to improve figure presentation by adding MyST figure captions/anchors and standardizing plot line widths (lw=2). One minor consistency nit remains: several figure captions in lectures/ak_aiyagari.md are still in English (reported at line 1172 and also at 1292, 1349, 1406, 1446, 1545).

Changes:

  • Add/refresh mystnb.figure metadata blocks (caption + stable name) for multiple rendered figures.
  • Update Matplotlib line plots to use lw=2 for clearer, consistent styling.
  • Update .translate/state/*.md.yml sync metadata to track the upstream source SHA and sync state.
File Summary
lectures/​two_computation.md Sync upstream figure metadata and styling updates (captions/anchors; lw=2).
lectures/​ak2.md Sync upstream figure metadata and styling updates (captions/anchors; lw=2).
lectures/​ak_aiyagari.md Sync upstream figure metadata and styling updates (captions/anchors; lw=2); includes a minor caption-language consistency nit (some captions still in English).
.translate/​state/​two_computation.md.yml Update translation sync tracking metadata for two_computation.md.
.translate/​state/​ak2.md.yml Update translation sync tracking metadata for ak2.md.
.translate/​state/​ak_aiyagari.md.yml Update translation sync tracking metadata for ak_aiyagari.md.

Review effort: Balanced

Comment thread lectures/ak_aiyagari.md
---
mystnb:
figure:
caption: Price path iterations for an immediate tax cut
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
pull request — b512dcbd Deployed Nov 9, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants