Skip to content

Malayalam translation: numpy — calibration review round 4 (v0.29.2 engine) - #23

Merged
mmcky merged 3 commits into
mainfrom
seed/numpy-r4
Sep 28, 2026
Merged

mmcky merged 3 commits into
mainfrom
seed/numpy-r4

Conversation

@mmcky

@mmcky mmcky commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Machine translation of numpy for native-speaker review — round 4 of the calibration programme (Phase 2 of QuantEcon/action-translation#189). This draft was regenerated on 2026-09-21 with the engine released that day, v0.29.2, which carries your answers on #22: the comma between -ഉം items always, English plural + Malayalam suffix, prefer in English, provide → നൽകുന്നു. It replaces the first draft of this PR, which was made at v0.29.0 before those answers and which you had not started on. draw is deliberately left to the sentence — both of your forms are fine — and your everyday-speech test for which words stay English is not encoded yet; we are checking it on unseen text first.

For the reviewer (@adisankarmt): as before — comment or suggest on any line you would change (English that should be Malayalam, Malayalam that should be English, a wrong case-suffix, awkward phrasing, the same term handled two ways). Suggestion blocks work perfectly and you can push directly to this branch. Headings, code cells and the whole Exercises section are machine-verified byte-identical to the English and need no proofreading. Every comment resolves to a glossary entry, a rule change in the tool, or accepted-as-is with our reasoning. No deadline.

Provenance: source QuantEcon/lecture-python-programming@b0b0b56 (current main; numpy.md unchanged since the first draft) · model claude-sonnet-5 · engine v0.29.2 (5f74d74, what @v0 resolves to), glossary v0.7.0 + the 28-rule set · translate init --localize none, produced locally · commit 889d001.

Machine verification: headings 20/20 byte-identical · code cells byte-identical · exercise-family blocks 8/8 byte-identical · round-2/3 lints on the text as sent: 0 lowercase sentence openers, 0 Malayalam plurals on English nouns, 0 -ഉം pairs without a comma, provide ചെയ്യുന്നു 0 (the first draft had 6). Left as generated for you to call: line 878 ends on a closing bracket with no full stop before a code cell; line 898 renders In fact as വാസ്തവത്തിൽ, which the rules ask to keep in English; line 1092 is a plain future statement (we'll cover … soon) that our hortative check flags but we think is right as it is.

Two disclosures. (1) This is the cleanest of three draws of the same engine on the same source, chosen by the deterministic lints — the others left 37 and 2 Malayalam lines unpunctuated before code cells. (2) One mechanical repair was applied, by script and not by hand: line 280, Columns-ഉം rows-ഉം → Columns-ഉം, rows-ഉം. Your answer was that this comma is always there; the engine's prompt delivers it only about a third of the time, so a script now inserts it (QuantEcon/action-translation#260). If a repaired line reads wrong to you, that tells us the script is wrong — please flag it like any other. Nothing else in the text was edited. All three draws are archived in the engine repo.

🤖 Generated with Claude Code

@mmcky
mmcky requested review from adisankarmt and a lite review from Copilot September 18, 2026 03:36
@mmcky

mmcky commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

A note on any automated Copilot comments, @adisankarmt — none need your attention. As on the earlier rounds, Copilot does not know this edition's keep-English policy: anything it says about code cells is a source-side matter (they are byte-identical to the English), and anything arguing to translate retained English is against the policy you set. If you ever agree with something it says about the Malayalam, write your own comment and that is the one we encode.

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.

🟡 Changes recommended

There are a few concrete content/markup issues in the added lecture (including a duplicated index directive and untranslated/mixed-language phrasing) that should be corrected before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds the Malayalam translation of the numpy lecture (MyST/Jupytext markdown) for native-speaker review as part of the translation calibration program.

Changes:

  • Introduces a new translated lecture file lectures/numpy.md.
  • Includes Malayalam prose translation while preserving code cells/exercises structure for notebook rendering.
File summaries
File Description
lectures/numpy.md Adds the full Malayalam translation of the NumPy lecture content in MyST markdown format.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lectures/numpy.md Outdated
Comment thread lectures/numpy.md
Comment thread lectures/numpy.md Outdated
@github-actions

Copy link
Copy Markdown
Contributor

📖 HTML build - view preview (3cac85f)

Translated pages in this PR:

@mmcky

mmcky commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

@adisankarmt — please hold off on this one for a few days. This numpy draft was made before your answers on #22. We will replace it with a fresh draft that follows them (the -ഉം commas, provide, the English plurals) and will post here when it is ready to read. If you have already started on this version, tell us and we will leave it exactly as it is.

Machine translation of numpy for native-speaker review — round 4 of the
calibration programme. Replaces the v0.29.0 draft (3cac85f), which was made
before the editor's answers on #22 and which he had not started reading.
Produced locally with translate init --localize none at action-translation
v0.29.2 (5f74d74 = @v0), model claude-sonnet-5, from
lecture-python-programming@b0b0b56 (numpy.md unchanged since 1706cea). The
cleanest of three draws by the ml lints (bare endings 1 / 37 / 2).

One mechanical repair by ml_repair.py, disclosed on the PR: a comma between
two -ഉം items (Columns-ഉം, rows-ഉം), per the editor's "always" on #22. No
hand edits. Exercise-family blocks 8/8 byte-identical to source; headings
20/20 and code cells byte-identical.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mmcky mmcky changed the title Malayalam translation: numpy — calibration review round 4 (v0.29.0 engine) Malayalam translation: numpy — calibration review round 4 (v0.29.2 engine) Sep 21, 2026
@mmcky

mmcky commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

@adisankarmt — the fresh numpy draft is here and ready for you whenever suits. It was made with the tool as updated from your #22 answers (the -ഉം commas, English plurals, prefer, provide → നൽകുന്നു), and it replaces the earlier draft on this PR, so please work from the current version of the file. The description above has been rewritten to match, including the two things we want you to know up front: this is the cleanest of three tries, and one comma (line 280, Columns-ഉം, rows-ഉം) was inserted by a script rather than by the translator.

A preview build will appear below in a few minutes. No deadline, as always — and thank you for waiting.

@github-actions

Copy link
Copy Markdown
Contributor

📖 HTML build - view preview (889d001)

Translated pages in this PR:

@adisankarmt adisankarmt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

translation improved exponentially

Comment thread lectures/numpy.md Outdated
* Academia, finance, industry എന്നിവയിൽ വ്യാപകമായി ഉപയോഗിക്കപ്പെടുന്നു.
* Mature-ഉം, fast-ഉം, stable-ഉം ആണ്, തുടർച്ചയായി development-ലും ആണ്.

മുൻ lectures-ൽ NumPy ഉൾപ്പെടുന്ന കുറച്ച് code നമ്മൾ already കണ്ടിട്ടുണ്ട്.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
മുൻ lectures-ൽ NumPy ഉൾപ്പെടുന്ന കുറച്ച് code നമ്മൾ already കണ്ടിട്ടുണ്ട്.
മുൻപത്തെ lectures-ൽ, NumPy ഉൾപ്പെടുന്ന കുറച്ച് code നമ്മൾ already കണ്ടുകഴിഞ്ഞു.

Comment thread lectures/numpy.md Outdated

(ഒരു alternative reference-ന്, [the official NumPy documentation](https://numpy.org/doc/stable/reference/) നോക്കുക.)

താഴെ പറയുന്ന imports നമുക്ക് ഉപയോഗിക്കാം.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
താഴെ പറയുന്ന imports നമുക്ക് ഉപയോഗിക്കാം.
താഴെ പറയുന്ന imports നമ്മൾ ഇവിടെ ഉപയോഗിക്കുന്നു.

Comment thread lectures/numpy.md Outdated

NumPy പരിഹരിക്കുന്ന അടിസ്ഥാന പ്രശ്നം, വേഗതയേറിയ array processing ആണ്.

NumPy define ചെയ്യുന്ന ഏറ്റവും പ്രധാനപ്പെട്ട structure, ഒരു array data type ആണ്, ഔപചാരികമായി ഇതിനെ [numpy.ndarray](https://numpy.org/doc/stable/reference/arrays.ndarray.html) എന്ന് വിളിക്കുന്നു.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
NumPy define ചെയ്യുന്ന ഏറ്റവും പ്രധാനപ്പെട്ട structure, ഒരു array data type ആണ്, ഔപചാരികമായി ഇതിനെ [numpy.ndarray](https://numpy.org/doc/stable/reference/arrays.ndarray.html) എന്ന് വിളിക്കുന്നു.
NumPy define ചെയ്യുന്ന ഏറ്റവും പ്രധാനപ്പെട്ട structure, ഒരു array data type ആണ്. ഇതിനെ formally [numpy.ndarray](https://numpy.org/doc/stable/reference/arrays.ndarray.html) എന്ന് വിളിക്കുന്നു.

Comment thread lectures/numpy.md Outdated
type(a)
```

NumPy arrays, native Python lists-നെ കുറച്ചൊക്കെ പോലെയാണ്, പക്ഷേ വ്യത്യാസം എന്തെന്നാൽ:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
NumPy arrays, native Python lists-നെ കുറച്ചൊക്കെ പോലെയാണ്, പക്ഷേ വ്യത്യാസം എന്തെന്നാൽ:
NumPy arrays ഏറെക്കുറെ native Python lists-നെ പോലെയാണ്, പക്ഷേ വ്യത്യാസം എന്തെന്നാൽ:

Comment thread lectures/numpy.md Outdated
type(a[0])
```

Integers ഉപയോഗിക്കണമെങ്കിൽ താഴെ കാണിച്ചിരിക്കുന്ന പോലെ specify ചെയ്യാം:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Integers ഉപയോഗിക്കണമെങ്കിൽ താഴെ കാണിച്ചിരിക്കുന്ന പോലെ specify ചെയ്യാം:
Integers ഉപയോഗിക്കണമെങ്കിൽ, താഴെ കാണിച്ചിരിക്കുന്ന പോലെ specify ചെയ്യാം:

Comment thread lectures/numpy.md Outdated

### Implicit Multithreading

[Previously](need_for_speed) multithreading വഴിയുള്ള parallelization-ന്റെ concept നമ്മൾ discuss ചെയ്തു.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
[Previously](need_for_speed) multithreading വഴിയുള്ള parallelization-ന്റെ concept നമ്മൾ discuss ചെയ്തു.
[Previously](need_for_speed), multithreading വഴിയുള്ള parallelization-ന്റെ concept നമ്മൾ discuss ചെയ്തിരുന്നു.

Comment thread lectures/numpy.md Outdated

NumPy അതിന്റെ compiled code-ന്റെ ഭൂരിഭാഗത്തിലും multithreading implement ചെയ്യാൻ ശ്രമിക്കുന്നു.

ഇത് action-ൽ കാണാൻ ഒരു example നമുക്ക് നോക്കാം.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ഇത് action-ൽ കാണാൻ ഒരു example നമുക്ക് നോക്കാം.
ഇത് എങ്ങനെ പ്രവർത്തിക്കുന്നുവെന്ന് കാണാൻ ഒരു example നമുക്ക് നോക്കാം.

Comment thread lectures/numpy.md Outdated
λ = np.linalg.eigvals(X)
```

ഇനി, ഈ code run ചെയ്യുമ്പോൾ നമ്മുടെ machine-ലെ htop system monitor-ന്റെ output നമുക്ക് നോക്കാം:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ഇനി, ഈ code run ചെയ്യുമ്പോൾ നമ്മുടെ machine-ലെ htop system monitor-ന്റെ output നമുക്ക് നോക്കാം:
ഇപ്പോൾ, ഈ code run ചെയ്തുകൊണ്ടിരിക്കുന്ന സമയത്ത്, നമുക്ക് നമ്മുടെ machine-ലെ htop system monitor-ന്റെ output നോക്കാം:

Comment thread lectures/numpy.md Outdated

8 CPUs-ൽ 4 എണ്ണം full speed-ൽ run ചെയ്യുന്നത് നമുക്ക് കാണാം.

NumPy-യുടെ `eigvals` routine tasks-നെ neat ആയി split up ചെയ്ത് വ്യത്യസ്ത threads-ലേക്ക് distribute ചെയ്യുന്നത് കൊണ്ടാണ് ഇത്.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
NumPy-യുടെ `eigvals` routine tasks-നെ neat ആയി split up ചെയ്ത് വ്യത്യസ്ത threads-ലേക്ക് distribute ചെയ്യുന്നത് കൊണ്ടാണ് ഇത്.
ഇത് എന്തുകൊണ്ടെന്നാൽ, NumPy-യുടെ `eigvals` routine, tasks-നെ neat ആയി split up ചെയ്ത് വ്യത്യസ്ത threads-ലേക്ക് distribute ചെയ്യുന്നു.

Comment thread lectures/numpy.md Outdated

Complex numbers, unsigned integers, തുടങ്ങിയവ represent ചെയ്യാൻ ഉള്ള dtypes-ഉം ഉണ്ട്.

ആധുനിക machines-ൽ, arrays-ന്റെ default dtype `float64` ആണ്.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ആധുനിക machines-ൽ, arrays-ന്റെ default dtype `float64` ആണ്.
Modern machines-ൽ, arrays-ന്റെ default dtype `float64` ആണ്.

@adisankarmt adisankarmt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

translation improved exponentially

mmcky and others added 2 commits September 28, 2026 13:08
All 73 suggestion blocks from the review of 2026-09-24..26, applied
verbatim by script against 889d001. Each target line was asserted
against the diff hunk it was written on before replacement; the only
lines changed are the 73 he suggested. Normalisation of markup the
suggestion box drops follows in a separate commit.

Co-authored-by: Adisankar Manoj Thanuja <45125206+adisankarmt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 197: restore the `float64` code span the suggestion box dropped.
- 495: capitalise the sentence start created by the split (Arrays).
- 635: `array` -> `matrix`; the line was pasted from 501, while the
  source and the same template at 702 say matrix.
- 833: dimension-കൾ -> dimensions (English plural + suffix, per the
  reviewer's answer 2.2 on lecture-python-programming.ml#22).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mmcky

mmcky commented Sep 28, 2026

Copy link
Copy Markdown
Contributor Author

Thank you, @adisankarmt — this was a very useful review, and the numbers agree with you. You changed 73 of the 143 Malayalam lines (two thirds of the lines last round), left 70 untouched, and most of your edits were lighter than before.

All 73 of your suggestions are applied exactly as you wrote them, in one commit with you as co-author (441d957). A second, separate commit (e66f4bf) makes four small corrections where the suggestion box lost formatting or a word slipped: the float64 code formatting at 197, matrix at 635 (the line looked copied from 501), dimensions at 833, and a capital Arrays at 495 after your split. Please check those three word changes — they are listed on #25, and if any is wrong we will put yours back.

The questions from this round are on #25 — five short ones, plus the three fixes to confirm. No rush.

What happens next in the tool. What you corrected this round is mostly the same few habits repeated: two clauses joined with a comma where you use a full stop, കാണുക for see (you wrote നോക്കുക every time), element-wise ആയി (you wrote ഓരോ element-ലും every time), and കണ്ടിട്ടുണ്ട് for already seen (you wrote കണ്ടുകഴിഞ്ഞു). We will fix these with small scripts that are checked against your own sentences, rather than by giving the translator more instructions. The next lecture will be made after those are in place.

The merge itself is @mmcky's.

@github-actions

Copy link
Copy Markdown
Contributor

📖 HTML build - view preview (e66f4bf)

Translated pages in this PR:

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.

3 participants