mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 05:57:42 +01:00
Reported after a translate item: "when i answer questions, i need to see
explanations and be able to practice it. this is not an explanation for that
exercise … explanation of words, grammar, or how it is said and how else it
could be said. if it's a word, synonyms, anonyms, word in context, short text".
It was not an explanation. The only one in the practice UI was a single line
— a topic's title and rule — inside the multiple-choice verdict. Translate,
reveal and card never rendered it; they did not even receive the grammar
dictionary. So the reporter, having typed a sentence about modal particles,
was told only that Zurich German has no fixed spelling. The test review, which
promises "alle Antworten mit Erklärung", showed a link.
WHAT EXPLAINS AN ITEM is now decided once, by `explanationFor` — a pure
function over the item and the published packs — and every one of the six
places a question can be answered renders whatever it returns. Measured
against all 587 published items: before, most showed nothing; after, none do,
and `explanation.test.ts` pins that. Each part appears only when it has
something true to say:
Die Regel the topic's rule AND its "Wo es hakt" line — the grammar
page's own words, so the two cannot drift — plus "drill
exactly this".
Im Gespräch the line with the lines before and after it, from the actual
situation. A sentence from a handover means something
different alone.
Das Wort meaning, article, forms, example, the false-friend trap, and
the other situations it is said in.
Heidi one tap for other ways to say it, similar words and the
opposite, a short text using it, or word by word.
THE LAST PART IS THE MODEL, AND SAYS SO. Synonyms, opposites and short texts
are not in the packs and were not invented into them: both packs are
`nativeReviewed: false`, and forty synonyms per word written without a Zurich
speaker would be unreviewed content wearing the costume of reference. They go
to the chat as an ordinary message the learner sent, and the note under the
buttons says whose answer it will be. Checked in a browser: the tap opens the
dock with «Erklär mir «Äbe, gnau das han ich gmeint.» Wort für Wort.» and
Heidi answers.
WHAT WAS LEFT OUT, NEVER HOW IT WAS SPELLED. The reporter wrote «Ebe, das han
ich gmeint» against «Äbe, gnau das han ich gmeint» and was never shown that
«gnau» was missing. `missingWords` folds case and diacritics and treats words
within a small edit distance as one word, so «Ebe»/«Äbe» and «Si»/«Sie» are
the same and only a genuinely absent word is named — §6 intact. It reuses the
existing `distance` rather than adding a second one.
MY OWN INCONSISTENCY, FIXED. The modal-particles topic I added in #112 spelled
the particle «eba»; the vocabulary spells it «äbe». Two spellings of one word
is what the pack promises never to do — and the spelling note then reassured
the reporter about THEIR spelling while mine was the inconsistent one.
AND TWO THINGS FOUND ON THE WAY:
- `PROMPT_TEXT` carried the dialect colour, so a translate item's GERMAN
prompt was painted as Zurich German. Two colour utilities on one element
do not override by class order, so the constant is now colourless and
each call site states its colour beside its `lang`. The dialect-lang
guard's exemption for it was stale and is removed.
- `explainingTopic` and the new `topicOf` would have been two copies of one
precedence. There is one; the old name re-exports it.
Verified: verify exit 0 — 892 tests; the reported flow reproduced in a
browser; a situation item checked at iPhone 13 width, no sideways scroll.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>