Malayalam translation: functions — calibration review round 2 (v0.3 rules) - #7
Malayalam translation: functions — calibration review round 2 (v0.3 rules)#7mmcky wants to merge 2 commits into
Conversation
Regenerated under the round-1 rules rather than reopening the stale 2026-08-03 seed: engine QuantEcon/action-translation@8625221 (post-#272, glossary v0.3.0 + 18-rule set), model claude-sonnet-5, source lecture-python-programming@81d9734 (carries the #604 source-side fixes), init --localize none. Machine gates: headings 17/17 identical, zero transliterations, below-deixis and calque signatures clean; the one pinned-term FAIL is the documented returns verb-homograph false positive, see QuantEcon/action-translation#240. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
📖 HTML build - view preview (7768372) Translated pages in this PR: |
There was a problem hiding this comment.
Pull request overview
Adds the Malayalam-localized version of the “Functions” lecture (MyST/Jupytext markdown), intended for native-speaker calibration review as part of the translation program.
Changes:
- Introduces a new
lectures/functions.mdcontaining the translated lecture prose while preserving code cells and structural MyST directives. - Adds
translation:front-matter metadata (title + heading map) for the lecture’s section structure.
Suppressed comments (4)
lectures/functions.md:533
- This sentence ("Here is one solution:") is still in English inside a Malayalam lecture and should be localized for consistency with the rest of the content.
Here is one solution:
lectures/functions.md:644
- These two sentences describing the Fibonacci sequence and the task statement are still in English. They should be localized to Malayalam (keeping the math expressions and numbers unchanged).
The first few numbers in the sequence are $0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55$.
Write a function to recursively compute the $t$-th Fibonacci number for any $t$.
lectures/functions.md:687
- The solution intro line ("Here's the standard solution") is still in English in this later exercise solution as well. Consider translating it and ensuring the same Malayalam phrasing is used across all solution blocks.
Here's the standard solution
lectures/functions.md:697
- The test intro line ("Let's test it") is still in English here too. It should be localized and kept consistent with the wording used in other solution blocks.
Let's test it
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| if/else clause-ന്റെ syntax self-explanatory ആണെന്ന് പ്രതീക്ഷിക്കുന്നു, code blocks-ന്റെ extent വീണ്ടും indentation delimit ചെയ്യുന്നു. | ||
|
|
||
| Notes |
| :class: dropdown | ||
| ``` | ||
|
|
||
| Here's one solution: |
| ```{hint} | ||
| :class: dropdown | ||
|
|
||
| If $U$ is uniform on $(0, 1)$ and $p \in (0,1)$, then the expression `U < p` evaluates to `True` with probability $p$. |
| :label: func_ex4 | ||
| ``` | ||
|
|
||
| The Fibonacci numbers are defined by |
| :class: dropdown | ||
| ``` | ||
|
|
||
| Here's the standard solution |
| return x(t-1) + x(t-2) | ||
| ``` | ||
|
|
||
| Let's test it |
|
A note on the automated Copilot comments above — none of them needs your attention, @adisankarmt. GitHub Copilot reviews every PR in this organisation automatically and knows nothing of this edition's keep-English policy: all six of its comments argue for translating retained English, and several argue against rules your own round-1 review established (short pointer sentences like "Here's one solution:" staying wholly English, and math-heavy hint text staying English per your recommendation, now policy). Treat them as noise — though if you ever agree with one (say, you'd rather "Let's test it" were Malayalam), write your own comment and that is the one we will encode. |
|
📖 HTML build - view preview (5ffae4e) Translated pages in this PR: |
|
@adisankarmt — the Malayalam web font from #9 is now on main and this PR's preview has been rebuilt with it: functions.html. Only the Malayalam characters changed (Noto Sans Malayalam for body text, Noto Serif Malayalam for headings); English and code are as before. When you're next in this lecture, a quick word on whether the size now sits comfortably beside the English is all we need — it can be nudged a few percent either way if not. |
Machine translation of
functionsfor native-speaker review — round 2 of the calibration programme (Phase 2 of QuantEcon/action-translation#189). Unlike the retired 2026-08-03 seed (#2, now closed), this translation was produced by the engine carrying everything round 1 taught it: the 100 flags from #1 encoded as glossary v0.3.0 and an 18-rule set (QuantEcon/action-translation#272), regeneration-verified before this was cut. Each review round now compounds into the engine before the next lecture goes out.For the reviewer (@adisankarmt): please comment on any line you would change — English that should be Malayalam, Malayalam that should be English, a wrong case-suffix, awkward phrasing, or the same term handled differently in two places. Since you now hold write access, you can also use GitHub's suggestion blocks in your comments (or push directly to this branch) — a suggestion applies with one click and credits you as the author. Headings, code cells and transliteration are already machine-verified — no need to proofread those. As before, every comment resolves to exactly one of: a glossary entry, a rule change in the translation tool, or accepted-as-is with our reasoning replied on the thread. No deadline.
Provenance: source QuantEcon/lecture-python-programming@81d9734 (current main, including the #604 source-side fixes) · model
claude-sonnet-5· engine QuantEcon/action-translation@8625221 — glossary v0.3.0 + the 18-rule set from your round-1 review ·translate init --localize none, produced locally and committed as7768372.Machine verification: headings 17/17 byte-identical · zero transliterations · casing variants 0 · below-deixis, calque, and word-choice signatures from round 1 all clean (
താഴെ കാണാംin use, noകൈകാര്യം/ആവശ്യപ്പെടുന്നു/ആവർത്തിച്ച്, line/lines kept English) · the single pinned-term flag is the knownreturnsverb-homograph false positive (QuantEcon/action-translation#240 — here it is the verb, correctly renderedreturn ചെയ്യുന്നു).🤖 Generated with Claude Code