Skip to content

Malayalam translation: functions — calibration review round 2 (v0.3 rules) - #7

Open
mmcky wants to merge 2 commits into
mainfrom
seed/functions-r2
Open

Malayalam translation: functions — calibration review round 2 (v0.3 rules)#7
mmcky wants to merge 2 commits into
mainfrom
seed/functions-r2

Conversation

@mmcky

@mmcky mmcky commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Machine translation of functions for 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 as 7768372.

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 known returns verb-homograph false positive (QuantEcon/action-translation#240 — here it is the verb, correctly rendered return ചെയ്യുന്നു).

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown
Contributor

📖 HTML build - view preview (7768372)

Translated pages in this PR:

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.

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.md containing 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.

Comment thread lectures/functions.md

if/else clause-ന്റെ syntax self-explanatory ആണെന്ന് പ്രതീക്ഷിക്കുന്നു, code blocks-ന്റെ extent വീണ്ടും indentation delimit ചെയ്യുന്നു.

Notes
Comment thread lectures/functions.md
:class: dropdown
```

Here's one solution:
Comment thread lectures/functions.md
```{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$.
Comment thread lectures/functions.md
:label: func_ex4
```

The Fibonacci numbers are defined by
Comment thread lectures/functions.md
:class: dropdown
```

Here's the standard solution
Comment thread lectures/functions.md
return x(t-1) + x(t-2)
```

Let's test it
@mmcky

mmcky commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

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.

@github-actions

Copy link
Copy Markdown
Contributor

📖 HTML build - view preview (5ffae4e)

Translated pages in this PR:

@mmcky

mmcky commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants