Skip to content

ja: read nPk permutations with the school phrase, in display order - #747

Merged
moritz-gross merged 1 commit into
daisy:jafrom
yasumorishima:ja-permutation
Sep 3, 2026
Merged

ja: read nPk permutations with the school phrase, in display order#747
moritz-gross merged 1 commit into
daisy:jafrom
yasumorishima:ja-permutation

Conversation

@yasumorishima

@yasumorishima yasumorishima commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This is the item #731's description left alone on purpose: 順列の, where "the right Japanese wording is a decision rather than a swap".

The pochhammer speech rule (reached from the nPk P-notation intents in Rules/Intent/general.yaml, whose children are [n, k]) copied the en argument reversal and glued 順列の between the arguments, so ⁵P₂ was spoken as 2 順列の 5 — word salad in Japanese. en says "2 permutations of 5" after Wikipedia's "k-permutations of n"; nb and sv rebuilt the phrase entirely ("antalet permutationer av 2 element ur 5"). Japanese has a standard school phrase that reads the notation in display order, so the reversal is simply not needed: 5 個から 2 個取る順列 ("permutations taking 2 out of 5").

The rule is marked audit-ignore the way nb's is, since the x:/T: sequence no longer mirrors en. A speech test covers the msubsup form in both ClearSpeak and SimpleSpeak — the first test added to tests/Languages/ja/ja.rs since the seed. The two :infix: guards and the match are kept identical to en, so nothing else that maps to pochhammer is affected.

audit-translations ja: untranslated text 3674 → 3673, rule differences 28 → 28, missing/extra rules 0 → 0.

🤖 Generated with Claude Code

The pochhammer speech rule (reached from the nPk P-notation intents) copied
the en argument reversal and glued 順列の between the arguments, so 5 P 2 was
spoken as 2 順列の 5 — word salad in Japanese. en says "2 permutations of 5"
after Wikipedia's "k-permutations of n"; nb and sv rebuilt the phrase
entirely ("antalet permutationer av 2 element ur 5"). Japanese has a
standard school phrase that reads the notation in display order, so the
reversal is simply not needed: 5 個から 2 個取る順列, "permutations taking
2 out of 5".

The rule is marked audit-ignore the way nb's is, since the x:/T: sequence no
longer mirrors en. A speech test covers the msubsup form in ClearSpeak and
SimpleSpeak. audit-translations: untranslated text 3674 -> 3673, rule
differences 28 -> 28, missing/extra rules 0 -> 0.

This is the item daisy#731's description left alone on purpose (順列の — "the
right Japanese wording is a decision rather than a swap").

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016JCoREgn1pJzcbdnUx4iuh
@moritz-gross
moritz-gross merged commit 3e0db86 into daisy:ja Sep 3, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from Triage to Done in MathCAT Project Board Sep 3, 2026
yasumorishima added a commit to yasumorishima/MathCAT that referenced this pull request Sep 3, 2026
daisy#747 has landed, so SharedRules/general.yaml is free to touch. It carries the
SimpleSpeak copy of the multi-line labels this branch already fixed in
ClearSpeak_Rules.yaml, and leaving it would have made the two styles disagree:
ClearSpeak saying ケース and SimpleSpeak ケースケース for the same piecewise.
Both rules in general.yaml now read ケース, 式 and 行, and the test asserts the
SimpleSpeak path as well as ClearSpeak.

The rest of general.yaml (vector, end, sub, the chemistry terms) is a separate
batch, not this one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016JCoREgn1pJzcbdnUx4iuh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants