The German as the question and three lines of the scene as answers, in place of most true-or-false claims. The say-aloud step names the language to speak, and on a tap sends the one take to be written down and shows the Standard German that came back as what a machine understood. Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r Co-authored-by: Claude <noreply@anthropic.com>
152 KiB
Heidi
The canonical definition. If product behaviour is decided anywhere else — a ChatGPT prompt, a Claude transcript, a blog post, a landing-page config — it is not decided. It is written here or it is not real.
One file, not four. A product this small does not need a documentation set; it needs one page that cannot drift from itself.
1. What it is
Heidi helps an adult who already has German understand the Zurich German actually spoken around them, deal with the messages and speech they meet in real life, and turn those encounters into learning — measured by how much of an unfamiliar Zurich speaker they understand, not by how much Heidi they have consumed.
Runs at heidi.orangecat.ch (beta). An OrangeCat property, built and dispatched
through Loki.
The channel is spoken, and the product had better be too. Zurich German is a language people HEAR. It has no standard orthography (§6), the lunch table that prompted this product is audio, and a learner who can only read it has solved a version of the problem that does not occur. So hearing this language and being heard in it are not a feature tier above the text — they are the subject, arrived at late.
What that does NOT mean is a promise the field cannot keep. Everything below — the overclaim register in §8, the gate over synthetic voices in §6, the refusal to correct a transcript's forms in §9 — exists so that adding the spoken channel did not quietly add four claims we cannot support. The honest summary is one sentence: Heidi can speak to you and understand you speaking; she cannot tell you whether you sound right, and neither can anything else.
2. The problem, from first principles
An adult lives in an environment where communication happens in a target variety T. They already command a related bridge variety B. They cannot understand T.
The mechanism that would fix this is exposure. And the environment withdraws exposure precisely when it detects that they need it: the Swiss switch to Hochdeutsch or English the moment they notice you struggling. The learner is denied the input because they are a learner.
That trap is the reason a product is justified at all. Heidi is a source of exposure that does not withdraw. Everything else is downstream of that sentence.
Two consequences follow immediately:
-
Raw exposure is not input. Speech you understand 0% of is noise. The job is calibrated exposure at the learner's frontier — which means the frontier has to be measured, per learner, continuously. That measurement is the thing software can do that a podcast cannot, and it is the whole justification for building this rather than recommending a radio station.
-
The learner cannot audit what we sell them. They are buying Zurich German because they do not know Zurich German. If we hand them Bernese forms, they will never find out. This is a lemons market, and it is why the deterministic variety gate (§6) is not a quality nicety but the thing that makes the product honest at all. The same logic forces real recorded speakers.
3. Fact, hypothesis, decision
Language-learning products accumulate pseudoscience by letting "there is a study" become "this is proven" become "the product is built on it". These three headings are kept separate on purpose, and every claim below is filed under one.
FACT — established, and we rely on it
- Exposure dominates every linguistic distance measure. Across 1,833 listeners and 70 language pairs, exposure to the test language overrode lexical, phonological and orthographic distance as a predictor of intelligibility. (Gooskens, van Heuven, Golubović, Schüppert, Swarte & Voigt 2017/18, Int. J. Multilingualism.)
- Consonant correspondences predict intelligibility far better than vowel ones — r ≈ −.74 vs −.29. (Gooskens & Heeringa.) Two of Heidi's current four correspondences are vowel rules, which is the weaker bet; note recorded in the pack.
- Multi-talker training is what buys generalisation to unheard talkers. Single-talker training can match or beat it on the trained voice and fails to transfer. Demonstrated for phonetic training (Logan, Lively & Pisoni 1991; Lively et al. 1993) and replicated specifically for regional dialects (Clopper & Pisoni 2004) — the closest precedent to our exact case.
- Generalisation is graded by acoustic similarity, not a switch. Adapting to one talker transfers partially to a new talker of the same variety, and less as the voices diverge. (Bradlow & Bent 2008; Xie & Weatherholtz et al. 2017.)
- Telling the listener what to attend to is an active ingredient. Identical stimuli and identical feedback; only the group cued to the relevant contrast learned it. (Pederson & Guion-Anderson 2010.)
- Retrieval with corrective feedback beats restudy. 222 studies, 48,478 students; g ≈ 0.50 overall, and feedback matters — g ≈ 0.54 with, 0.37 without. (Yang, Luo, Vadillo, Yu & Shanks 2021, Psychological Bulletin.)
- Spacing beats massing in L2, and the advantage grows at delay: g ≈ 0.76 immediate, g ≈ 1.15 delayed, over 48 experiments and 3,411 participants. (Kim & Webb 2022, Language Learning.)
- One correct retrieval is not the finding; more than one, spaced, is. Relearning to a criterion of repeated correct retrieval is what produces durable and efficient gains, and the marginal return falls off sharply after the first few. (Rawson & Dunlosky 2011, JEP: General.) This is why a missed item comes back before the sitting ends rather than only in a fortnight — and why the distance is three questions rather than immediately, which is OUR number and not theirs.
- A multiple-choice question without feedback can teach the wrong answer. Choosing a lure exposes the learner to it; feedback both raises the benefit of testing and removes that specific harm. (Butler & Roediger 2008, Memory & Cognition.) Three of the five item kinds here are multiple choice, so this is load-bearing rather than interesting.
- Generating beats reading, and by less than its reputation suggests. A meta-analysis puts the generation effect at a real but moderate size. (Bertsch, Pesta, Wiscott & McDaniel 2007.) It justifies having cloze and open items; it does not justify making every item productive.
- Interleaving is conditional, and the condition is similarity. The meta-analysis finds the benefit depends on how similar the material is, and that on highly similar material blocking can win. (Brunmair & Richter 2019, Psychological Bulletin.) Heidi interleaves item KINDS, which are not similar to each other, and does not claim the finding it does not have.
- Captions help, after the listening attempt. Large effect on vocabulary (g ≈ 0.87) and on comprehension, apparently by helping segment the speech stream. (Montero-Perez, Van Den Noortgate & Desmet 2013.) The crutch risk is real and is specifically about text shown during listening.
- Perception training transfers weakly to production — d ≈ 0.92 perception, d ≈ 0.54 production, uncorrelated across studies. (Sakai & Moorman 2018.) So comprehension training must not be sold as a speaking fix.
- Written dialect is normal in Swiss digital communication, not slang — which is what makes "text like a local" a real competence and not a gimmick. (Uni Bern, Texting in Time; UZH What's Up corpus.)
HYPOTHESIS — plausible, untested, and Heidi is the instrument
- Correspondences work as in-practice attentional cues even though they fail as a lecture. The one rigorous test of the lecture form — 50 minutes of Dutch↔Frisian correspondence instruction — produced no significant gain (Bergsma, Swarte & Gooskens 2014), and the authors themselves decline to generalise it. The whole European intercomprehension pedagogy tradition (EuroCom, Galanet, Galapro) is, in Gooskens & van Heuven's own words, essentially unevaluated. The nearest positive evidence is indirect: Slavic learners recognised non-words far better when the change followed a regular correspondence, amplified by sentence context. Status: our design is the untested one. Test it — condition A audio→answer→replay, condition B audio→one correspondence cue→replay→answer, outcome = delayed generalisation to unseen words from an unheard speaker.
- A short tuning session measurably improves cross-speaker comprehension. See the overclaim register (§8) — what is established at ~60 seconds is processing speed, not accuracy.
DECISION — product choices, valid whether or not the hypotheses hold
-
Listening before texting before speaking for Zurich German. Justified by the sociolinguistics, not only the evidence: understanding dialect and replying in Standard German is a complete, respected way to take part.
-
Measured, not gamified — and the line is sharper than it was. Revised 2026-09-22, after a fair challenge: why are we so hateful towards streaks, percentages, gamification, addictiveness?
The honest answer is that the original rule was two rules wearing one coat, and only one of them survives scrutiny. Two questions decide everything here, and they are independent:
What is counted? Consumption — days opened, minutes spent, lessons finished — or capability: forms you now get right that you got wrong before. A streak counting days is a measurement of us, printed in the place a learner reads as a measurement of them. That objection is real and it stands.
How is it framed? Gain — here is what you can do now — or loss: don't break your streak, your progress will reset, you have not practised today. Loss framing is what makes a product feel compulsory, and a compulsory language app is one somebody quits with a bad feeling about the language.
What we refuse is the dishonest quadrant: consumption counted, loss framed. Not measurement, and not motivation. A learner being shown, in plain numbers, that they now recognise forty-one words they missed in September is being told something true about themselves, and withholding it is not integrity — it is just a worse product. Competence and relatedness are motivating on their own (Ryan & Deci 2000); nothing about that requires a flame icon.
So: counts of capability, framed as gain, never loss. Revised again 2026-09-25: a streak of days is allowed on exactly those terms — shown as what you have built, never as something you are about to lose. No shaming reminder, no "your streak ends tonight", no paying to repair one, and a free freeze, because a week of illness is not a failure. A weekly goal is offered beside it for people whose life does not run in days. What stays refused is the guilt, not the count. No percentage "fluency", because there is no denominator for a language — a SITUATION has one, which is why "10 of 10 lines" is allowed and "73% fluent" is not. No pronunciation score, for the separate reason in §8 — that one is about what can be measured at all, not about how it would be framed.
The reported headline number is unchanged: comprehension of an unfamiliar Zurich speaker, before and after.
-
The test speaker is always one the learner has not heard. Forced by the generalisation research; without it we would be measuring memory.
-
Real recorded Zurich speakers. Note the reason has changed — see §7.
-
The model never judges its own variety. §6.
4. Architecture: the variety is data
George's requirement: "if tomorrow I tell you to make the same kind of Heidi but for Ukrainian, and call it Lesya, we should be able to do that."
Taken as a now constraint, not a later one — because it decides the shape of everything, and retrofitting it costs more than building it.
The wrong answer is i18n. Translating the UI is not the problem; the subject matter is the problem. The right answer falls out of §2: if the product is "comprehension of a related variety across a bridge you already have", then the variety is a parameter and the engine is general.
lib/course/
registry.ts THE LIST — the courses, the default one, the active one
stored.ts what the browser keeps, by course
lib/variety/
pack.ts the contract — what any variety must declare
check.ts the deterministic gate, generic over packs
active.ts THE SEAM — resolves the active course's pack
authored.ts the same seam for a pack's hand-written questions
gloss.ts meanings in the reader's language, per course and language
packs/gsw-zh.ts Zurich German (Heidi)
packs/uk.ts Ukrainian (the contract's second instance)
packs/glosses/ one gloss file per course and interface language
packs/authored/ one folder of hand-written questions per pack
The house rule that keeps it honest: nothing outside lib/variety/packs/
may name a Zurich form, a German word or a Swiss fact. If swapping the pack
would not swap the product, something has leaked. Since 2026-10-22 the rule
has a gate: lib/variety/leak.test.ts reads every string literal in lib/
outside the packs (and the seams, the dictionaries, the register and the
deployment's own config) and pins the count per file to a baseline that may
only fall. The baseline IS the to-do list for the next product: each row is a
file that still knows which language it teaches. Since 2026-11-25 it is
empty: the hand-written questions live with their pack, the written-standard
move is declared by the pack's bridge, the time zone is config and the mail
texts are in the dictionaries. Since 2026-11-25 the same
test has a second pass for the language itself: it asks the shipped packs
what their words look like and fails on one of them in engine code, which is
how ["de", "d", "s"] in the question generator and «Velo not Fahrrad» in
the prompt builder were found and moved.
Courses (2026-11-25)
Decided by the owner: Heidi becomes the place to learn the languages of Switzerland. So the engine holds several courses, where a course is a taught variety explained in the learner's language, and only one exists today.
- One registry.
lib/course/registry.tslists the courses as{ id, pack, entry }: a permanent id, the tag of the variety pack, and how a learner enters (sibling: from a close language they already have;zero: from nothing).lib/variety/active.tsresolves the active course's pack, so every importer ofVARIETYis unchanged. - Every stored record names its course. Browser stores that hold course
progress (learner model, schedule, history, the sitting in progress, kept
words, chosen situations, the other devices' records, and the answer to
«Wie gut ist dein Deutsch?») are written as
{ v: 2, courses: { <id>: value } }under.v2keys (lib/course/stored.ts). A value under the old.v1key is read as the Zurich course and never rewritten in place: a tab still running the old code would otherwise read "no progress" and write that over everything.progress_devices,certificatesandentitlementshave acoursecolumn defaulting to the Zurich course.lib/course/stored.test.tsfails when a new device store or table has not been placed as a course record or as not one. Two device stores hold one list for every course and name the course on each entry instead: a speaking take (course) and a listening record (variety), as does a stored question set; an entry without one, or with the pack tag listening wrote before, is the default course's (courseOfStored). A signed-in caller's rate-limit key carries the course too. - Item ids are unique across courses (
scopedId): the default course's ids are bare and unchanged (article:tram), any other course's are prefixed (fr-ch/article:tram). - Where an item's level comes from is the course's choice
(
lib/domain/practice/levels.ts). Asiblingcourse measures the distance from the sibling language, as Zurich always has; azerocourse reads a CEFR band declared on the word, the line or the topic. The names a learner sees for the three levels follow the same choice (levelNames). - The pack declares its forms. Articles and the bridge's, the person
labels of its paradigms, its vocabulary groups, the locale its text is
case-folded by, the respellings that are one word (applied only without a
standard orthography), the device voices that may read it, and the lines
of the prompt that are about its bridge, and the key of the chat's
"in the written standard" move (
rephraseAs). A contract test over every pack (lib/variety/declared.test.ts) refuses a value the pack did not declare. - A meaning has a gloss.
lib/domain/meaning/meaning.tsholds the one rule: a learner whose German is good sees the German meaning, as before and by default; «etwas» adds the gloss in their interface language; «keins» shows the gloss alone; without a gloss the German is always shown. Every surface that prints a meaning goes through it (practice, the word list, scenes, saved words, the dashboard, the key words of a listening lesson, the speaking task), and the element around a meaning takes itslangfrom the pack's bridge. Glosses live inlib/variety/packs/glosses/<course>.<locale>.ts, keyed by the German the course gives, are fetched only for a reader who needs them, and say in their own data who wrote them and that nobody has reviewed them. English, French, Italian and Russian exist for every word, scene line and hand-written question text; Romansh does not, because nobody here can vouch for one.
What is NOT done, so nobody assumes it: there is one course and no way to
choose another; the primary key of progress_devices does not include the
course and has to be widened, in its own migration, when a second course
exists; and pnpm run glosses:coverage prints which meaning texts have no
gloss in which language.
Which product is next, and in what order
Decided 2026-10-22. French first, Ukrainian after. French because it is what somebody needs to work in the French-speaking part of the country, which is the same person Heidi already serves on the other side of the Sarine; the Ukrainian pack stays as the proof the contract holds across a genuinely different case (a production gap, a standardised orthography) and ships second. The French product is not called Heidi; its name is chosen when it is built. What is decided now is only that it is the same build.
"The same build" is a claim with a test behind it, not a hope. The French product is a second deployment of this repository with a different pack, not a fork and not a rewrite, and the day the owner says "now" the work is the list below and nothing that is not on it. If building it needs a change outside this list, that change belongs HERE first, as a generalisation every product gets, and the list grows by one line so the next one does not.
- A pack.
lib/variety/packs/fr-ch.ts, by the contract inpack.ts: identity, bridges (the learner's German or English asgloss, French from France as thesibling), the learner profile (priorityfirst — HEIDI.md §4 already made the front door read it), correspondences, contamination rules, orthography (standardised: true), vocabulary, grammar, situations' lines, capabilities (recognition and synthesis for French are off the shelf). The contract suite runs over it on day one and is red until it is whole. The speech, listening and question machinery reads the pack and needs no edit:accepted.tsalready takes the caption languages frombridges, the question language from the sibling, the recogniser's tag from the sibling. - Two seams.
lib/course/registry.tslists the course andlib/variety/active.tsships its pack;lib/situations/active.tskeeps only the scenes that declare its tag. - UI languages.
lib/i18n/locales.tssays which languages the product speaks to the learner in — for Romandie: French, German, English, and whichever a learner there arrives with. The dictionaries are UI copy and are translated per product; a dictionary line that names the VARIETY (the dialect toggle, «Züridütsch» in a settings sentence) is found by thei18ntests, which compare every locale to the first. - The deployment's own facts.
lib/config/site.ts(name, address, assistant's name), the register inlib/listening/sources.ts(French Swiss media, withspokenper row as here),lib/research/*and the essays, which are about THIS language and are replaced rather than translated. - The hand-written questions. The leak baseline is at zero
(2026-11-25), so what is left of this step is content: the questions in
lib/variety/packs/authored/<pack>/, including how the clock is said, are a course's own and are written new, then registered inlib/variety/authored.ts. - A repo, a box row, a domain. Loki provisions the repository and the
apps.confrow (lokiscripts/hetzner/new-site.sh); the name picked in step 0 decides the host. The database is new and empty; the migrations here apply as they are. Three tables carry acoursecolumn whose default is this repository's default course id, so a product with another default course adds one migration that changes that default.
What is deliberately NOT on the list: a shared package. Per the fleet's own rule the package is extracted at the second consumer, and the French product is that consumer — the extraction happens as part of building it, from a list that already says which files are the engine and which are the pack.
A pack declares identity, bridges, the learner profile, correspondences, contamination rules, orthography policy, and capabilities. It is enforced by a contract test suite that runs over every pack, so a half-finished pack turns the build red rather than shipping.
What writing the Ukrainian pack actually proved
Writing uk.ts was the point — an abstraction with one instance is a guess.
(It was called Lesya in the owner's original framing; the name of any second
product is decided when it ships, and the first to ship is French.) It held,
and it cost two fields:
| Heidi (Zurich German) | the Ukrainian pack | |
|---|---|---|
| Contamination threat | Bernese / Basel / Ostschweiz forms | Russian calques, surzhyk |
| Orthography | none — spelling is convention | state standard — spelling can be wrong |
| Learner's broken skill | comprehension | production |
| ASR / TTS | none usable | both, off the shelf |
| Licensed audio | none (all NC) | abundant |
Three things generalised cleanly: the bridge mechanism, the contamination gate, and the pipeline shape. Two broke the contract and forced new fields:
-
orthography.standardised. Identical checker behaviour would be wrong in one direction or the other — nagging Swiss users about spelling that has no standard, or waving through genuine Ukrainian errors. -
learner.priority— and this is the one that would have sunk a naive port. A Russian-speaking Ukrainian has understood Ukrainian since school; they receive it fluently. Their gap is confident, interference-free production. Shipping Heidi's listening-first front door to that population drills a skill they already have and skips the one they came for. So the engine never hardcodes the front door — it readspriority[0].
capabilities earns its place for the same reason: it declares which surfaces
can exist at all, so the engine degrades rather than assumes. Heidi cannot offer
pronunciation feedback; a Ukrainian or a French product could on day one.
Extraction: this stays inside Heidi until a second instance exists. Per the fleet's own rule, the shared package is created at the second consumer, not the first. The seam is drawn now so the extraction is mechanical then.
The third axis: situations
Two axes were already separate and deliberately so — VARIETY is what you
learn, the active course's pack; locale is what Heidi speaks to you while you
learn it, seven of them. Neither answers the question a care assistant actually
arrives with, which is not what is Zurich German but what is said to me at
half past six in the morning, and what do I say back.
So there is a third: domain — where you need it.
lib/situations/
pack.ts the contract — what any domain must declare
active.ts THE SEAM — the packs matching the taught variety
display.ts the projection, same rule as the variety's
packs/gsw-zh-care.ts care and nursing homes, in Zurich German
Unlike the variety, a domain is not one per deployment. One Heidi serves a care assistant, a relocating doctor and somebody who has just moved into a shared flat, and those are not three deployments. So packs are a list, filtered at module load by the variety they declare — a French build that inherited this folder offers no Zurich sentences rather than offering them in the wrong language, which is §2's failure with the packaging changed.
Why it is not simply more vocabulary. The word list is organised by what KIND of word each one is, and that is right for its own argument: function words and the constant verbs are what no correspondence rescues. It is the wrong organisation for a shift. Nobody walks into a handover needing the twelve commonest particles; they need to follow four sentences about who slept badly. A situation is a scene and the lines that occur in it, in the order the moment unfolds — and the unit is the sentence, because the sentence is the unit a learner fails at.
Three things keep it honest, and none of them is care:
- Every line passes the deterministic gate, at the
foreignthreshold the generation gate uses. The contract suite runscheck()over all of them, so a Bernese vowel fails the build rather than reaching somebody who could not detect it. Proven by mutation, not by the suite being green. - Every line names a source for its lexis — required on every phrase, unlike a vocabulary entry where a bare pair may inherit the pack default. A sentence is a bigger claim than a gloss, and this module publishes nothing but sentences. The source vouches for the WORDS; the arrangement is ours, because example sentences must be written for this product rather than lifted from resources that are research-licensed or non-commercial.
- A pack declares whether a native speaker has read it, and the page prints
that answer either way.
provenance.nativeReviewedisfalseoncaretoday and the scene pages say so above the lines. This is the field most easily skipped and the one that matters most: §2's argument is that this learner cannot audit what we sell them, and that is far more true of a sentence somebody will say to a frightened person at six in the morning than it is of a greeting. It flips when a named person has read every line, andbyrecords who — a test refuses a claimed review that names nobody.
Direction is a field, not decoration. hear or say, per line. §1 puts
listening first and speaking last on purpose, and a domain pack is the easiest
place in this codebase to drift into a phrasebook, which is all say. A test
holds every pack to at least a third hear, and each scene prints the count.
The floor is a third rather than a half because care legitimately leans on
production — the reply to somebody frightened at six in the morning is not a
sentence you get to compose in Standard German first — and a rule that failed
the honest pack is a rule nobody keeps.
Where it surfaces. /situations is the list: the learner's own situations
first, then each domain, one row per situation with where the learner stands
in it (new, begun, followed, due again) and a run left half way pinned on top.
With thirty-seven situations it opens with one line of links to its domains,
and the short list on the practice page and in Mein Bereich shows five of the
learner's own, from where they are (previewOf), never all fourteen a reason
can give.
/situations/<scene> is the opener of that situation's guided run — a
photograph of the place, one sentence, how many lines and about how long, one
button — and /situations/<scene>/run is the run itself, about five minutes,
one thing per screen: each heard line alone with one question and then its
German; two lines to build from their words and to say aloud (recorded, played
back, never marked); the whole exchange once more without German; and an
ending that says how many lines were followed and names ONE next situation
with its reason (lib/domain/situations/). Every answer of a run goes into
the same ledger as a practice answer. The reference list of a scene's lines is
/situations/<scene>/lines, one quiet link from the opener. The endings of
practice, the test and the warm-up hand on to a situation when one is the
learner's next step. Scene lines also become practice items — hear lines only, same
blanking rule as the grammar cloze, and a missed one traces back to the SCENE
rather than to the topic, because the other nine lines are the context that
makes it stick.
5. What is true of the repo today
A seven-language site — home, chat, a reference section (grammar, dialects,
vocabulary), method, contribute, about, plus a personal dashboard and settings
— with the assistant on the home page, at full size on /chat, AND docked on
every other page, the deterministic gate shown as evidence on /method, and
the variety layer underneath. Signed in, the home page IS the dashboard: same
address, different page, because "Start" has to mean start.
Photographs open the main pages and every situation (shared/scene.tsx).
Each place is one photograph by day for the light theme and, where a good one
exists, an evening or night photograph of the same kind of place for the dark
theme, shown by CSS so neither flashes and only one is fetched; where none
exists the day photograph is shown in both, quieter in the dark. The words
stand on a veil of the theme's own page colour, as on Solon. Every picture,
its author and licence are one list (lib/config/photos.ts), rendered on the
Impressum. They are served from object storage, never resized by the app box:
lib/media/manifest.json names each photograph's variants (fixed widths, AVIF
and WebP, photos/<name>.<hash>/<width>.<format>, the same scheme as Solon's),
written by scripts/media/build-photos.mjs. The deploy's build uploads what
the bucket lacks by itself (scripts/media/ensure.mjs, first in pnpm run build when SELF_HOST=1) and only after one variant answers through the
public address turns the custom loader on (NEXT_PUBLIC_MEDIA_BASE); without
the bucket's settings the box serves the photographs as before. lib/media/
imports nothing from the app because it belongs in @bitbaum/sitekit; the
move is pending (this session could not push to bitbaum/sitekit, see
package-plan.json, block media).
The dashboard («Mein Bereich», dashboard.tsx) is one column in the order the
questions come: the warm-up invitation until it is done; «Heute»
(today-panel.tsx): the streak, the questions and kept words due, «Jetzt
üben» and «Mit Heidi chatten», the weekly goal; then what you are working on,
the situations, what you can do and the patterns, EACH ONLY ONCE IT HAS
SOMETHING TO SHOW; then the kept words (the one due, then the list); then
conversations and groups, side by side on a wide screen. No jump strip, and no
empty box promising later: a new account sees the invitation, «Heute», the
words and the groups. The gap between blocks is set by the page; panels carry
no outer margin.
On a phone the header is the brand, the account and one menu control; language and light/dark are in the menu sheet (and in the settings and the footer). From 1024px the language stays in the bar and its panel carries the appearance. Dropdowns hang from the row, not from their buttons, so none can leave a phone's screen.
Heidi says du to the reader in every interface language (du, tu, ti, ты);
address.test.ts and register.test.ts fail on a formal form in any string.
Lines that teach the polite form stay. A learner never reads the word «Pack»:
what the pack says is shown as «bei Heidi». One layer
scale for the site: a page uses 40 or below, the header and everything it
opens is 45, and only overlays meant to cover it (dialogs, sheets, the open
chat, a full-screen task) use 50. lib/config/layers.test.ts holds the scale
and forbids unpositioning the header; pnpm run audit:overlays opens every
expandable control in a real browser, light and dark, and fails on a panel
that is covered, empty or see-through, or — in dark — on a fixed element
painted light. CI runs it after the layout audit.
Dark mode swaps ink and paper, so fg-primary and action turn white there.
Two things must not follow: floating chrome (the dock pill, the avatar) uses
float, which stays dark, and every backdrop behind a dialog, sheet or menu
uses scrim, which is black in both themes. Both were white in dark once;
tokens.design.test.ts now refuses bg-fg-primary/… and a fixed
bg-action.
There are now accounts and a database. Heidi has its own accounts
(@bitbaum/accountkit/auth: email and password, passkeys, two-step codes, and
OrangeCat as one option); Postgres holds study groups (and teams), private
conversations, the speaking rounds people schedule, the votes and comments left on the
roadmap and changelog while those were open (a random browser key, not an
account; a say now goes through Solon), and — ONLY
for a learner who switched it on — their synced progress and the certificates
issued from it. Saved vocabulary, the learner model, the question schedule and recorded takes live in
the visitor's own browser by default; see "Progress on more than one device"
below for what changes when sync is on.
There is now audio, and the shape of it matters: a learner can record themselves, and the recording is measured in the browser — always, in every mode, before anything else happens to it. On the dialect it is then dropped and nothing is sent anywhere, which is the default and the whole position.
One mode differs and it is a choice the learner makes per take, not a setting that creeps: practising the BRIDGE — Swiss Standard German, the variety with a recogniser that returns what was said — sends the recording once to be transcribed. There is still no audio table and no upload endpoint that stores anything; the recording exists for the length of one request. The screen says which of the two it is in, next to the button, in the learner's language. See §9 and §10.
- Linguistic knowledge is data, in the packs — not embedded in prompts. The
model's instructions are generated from the pack (
lib/variety/prompt.ts), so no language is named in prose anywhere in the engine. - The UI language and the taught variety are separate axes.
VARIETYis what you learn, one per deployment;localeis what Heidi speaks to you while you learn it, seven of them. Conflating them would make a second deployment re-translate the site as well as swap the pack. - German is the default locale; Swiss German comes first in every list of
languages. The switcher, the footer and settings share one order
(
MENU_ORDER): the dialect, then the four national languages, then English and Russian. It is what the site teaches, and a reader who can read it should not have to scan past four other languages to find it. The closed switcher labels it "CH", not its ISO code "GSW", which read as an unexplained abbreviation (LOCALE_SHORT); the URL keeps/gsw/. A Swiss German reader gets Heidi's explanations in Züridütsch too. Every saved conversation follows the language of the page it is written from, not the language it began in. Dialect suggestions come without a translation for that reader, since the only possible translation is the line itself (forReaderinrespond.ts). A signed-in learner's language follows them to every device: picking one in any language menu saves it (preferences, one row per account), and every sign-in returns through/api/account/language, which puts the saved language into the page they land on. Signing in from a non-German page with nothing saved yet saves that page's language, since German is where everyone starts and says nothing about a choice. A shared link is never rewritten, and signed out nothing is stored (lib/domain/preferences/). German is the source dictionary and the others are typed against it, so a missing key is a build error. Romansh is unreviewed by a native speaker and says so; the assistant answers Romansh readers in German rather than invent low-resource output at an audience that would spot it instantly. Swiss German is offered as a dialect, deliberately not filed with the four national languages — Switzerland has four and this is not one of them. - Heidi has its own accounts; the actor id is bare text. Since 2026-10-15
a learner registers here (email and password, passkeys, two-step codes) or
continues with OrangeCat. The actor id on every row is the account id — or
the OrangeCat
subfor someone whose first way in was OrangeCat, which keeps every row written before accounts existed theirs. Stored as bare text with no foreign key; the display name is still denormalised onto membership rows. - Postgres holds groups and private conversations.
study_groups,group_members,group_messages,conversations,conversation_messages. The two families are deliberately not one family. A group'sinvite_tokenisNOT NULL UNIQUEand is a credential, so reusing the table for private chats would mint a joinable room key for every conversation anyone ever had; and their deletion semantics run opposite ways. Leaving a group setsleft_atrather than removing the row, so the messages someone wrote keep an author. Deleting a conversation destroys its messages. - A private conversation stores
image_count, never the images. Attachments would be the largest rows in the database and the most private artefact the product touches. The count is enough for a reopened thread to say a picture was here. - Signed out, a conversation never reaches the database. It lives in
localStorage: the home box and the dock keep one thread underheidi.chat.draft.v1, and the full chat keeps its list in chatkit's device store underheidi.chats(_components/chat/stores.ts; pictures by name, never their bytes). The alternative — minting a pseudo-actor from a cookie so anonymous rows have an owner — is a tracking id by another name, and it creates rows nobody can ever authenticate to in order to delete. Adopting a signed-out conversation into an account is offered, never automatic, and every field is rebuilt server-side. - Saved vocabulary is device-local.
lib/browser/store.tsover localStorage, not a table — it needs no account, works signed out, and keeps Heidi from holding a record of what a particular person cannot understand. - A newcomer can warm up before anything else: eight lines, no grade.
/warmupasks existing «What is meant?» questions from the everyday scenes on an editorial ladder (lib/domain/warmup/ladder.ts): concrete first-week lines, then small words and tempo, then between-the-lines. It climbs after a right answer, steps down after a miss, and never ends on a miss. What comes back is a portrait in terms of the material — the scenes already followed and the one worth starting with — never a level or a score (§8). Each answer also feeds the learner model, so the first practice session starts where the warm-up found the gaps. A reader who gets two between-the-lines questions right with at most one miss is offered the site in Swiss German, once; declining is remembered. It is offered on the home page, on the dashboard until done and on the practice page, and never required. Kept in the browser (heidi.warmup.v1). - The theme is the reader's.
globals.csshad carried a full dark palette since the retheme, in blocks guarded ondata-theme— and nothing ever set that attribute, so the palette was unreachable. Light, dark or the device's own, stamped by an inline script before first paint, because an effect runs after it and a reader who chose dark would watch a white page flash to black on every navigation. - The assistant is reachable from every page. Chat is how people use this
product, and it existed on two surfaces out of eleven: a reader on
/grammarhad to notice the nav, work out which link was the chat, and lose the page they were reading. Signed in it was worse — the locale root is the dashboard, so the landing page had no composer at all. The dock (_components/chat/dock.tsx) is the same conversation as the home box, because both read one store (use-draft.ts, throughuse-draft-chat.ts); expanding to/chatcarries that thread into the full chat's list (use-earlier-writing.ts). - The dock stands down on one page only: the full-screen chat, which marks
itself
data-chrome="chat".globals.csshides the dock when the document contains that marker, because it IS the window the dock would open. It used to stand down on every page holding a conversation, and on the home page, where the chat box sits below the fold on a phone, that read as the chat being gone. - The full chat is the fleet's chat app.
/chatis chatkit'sChatApp(_components/chat/workspace.tsx): the header (the list · the conversation's name · New chat · "…" with Temporary chat, Rename and Delete), the list of conversations as a drawer on a phone and a rail from 64rem, with search and Today / Yesterday / Earlier, the queue, Stop and the open conversation coming back after a reload. Heidi supplies the transport, the stores and her words, and draws her own answer under chatkit's (AnswerFooterintranscript.tsx). Heidi's own rules go through ChatApp's props, not around it: Stop discards the half answer (stopKeepsPartial={false}— it has not been through the variety gate), each failed turn says why in its own words (ChatTurnErrorwith the kind fromfailureSentenceinchat-app.ts), the move chips and the word pick send in one tap (renderFooter'ssend, theChatAppHandle), the dialect starter carrieslang, and signed out the list says where the chats live (historySlot). Signed in, the open conversation is in the address (/chat/<id>, kept withreplaceState). The home box and the dock start again withnew-chat-button.tsx. - Opening Heidi is a blank page with the box ready, and the last conversation
is one row away. Nearly everyone arrives with a NEW sentence — a message
that just came in, a word overheard at lunch — and the big chat apps all open
blank for that reason; Heidi used to put you back inside last week's thread
and leave the way out (a small pencil) for you to find. The rule is one
function,
isStillGoinginlib/domain/chat/draft.ts: a signed-out thread written less thanSTILL_GOING_MS(30 minutes) ago comes back exactly as it was — ask, read a grammar page, come back is ONE conversation — and anything older is OFFERED as a single row (earlier-row.tsx: «Your last conversation · date», the learner's own first line, Continue →), never restored over the box and never deleted by opening. The home box and the dock share it throughuseRestoreDraftand one empty state (empty-chat.tsx)./chatapplies the same rule to that thread as it arrives — continued if it is still going, offered as the same row if not — and otherwise reopens the conversation that was open, as every chat app does; its list is one tap away. A first message in the fresh chat replaces the offered thread: the device keeps one, and someone who wants every conversation signs in. Dates are the reader's own format, not "3 days ago":Intl.RelativeTimeFormathas no usable data for Swiss German or Romansh. - Talking to Heidi has one name, one way in, and gets out of the way. The
header's button, the dashboard's button and the floating launcher all say the
same words (
chat.dock.open, «Ask Heidi») — there used to be a second,nav.quickChat(«Quick chat»), for the same act. On a phone the launcher slides off the bottom while you scroll DOWN, because it covered the last lines of whatever you were reading, and comes back on the first scroll up, at the top, at the end of the page, and whenever it has focus (useScrollingDownindock.tsx; the CSS is phone-only inglobals.css, so on a desktop it never moves). In the composer, an empty box offers a Paste button (paste-button.tsx, in chatkit'stoolsslot — no fork): most first messages are a line somebody else wrote, copied in another app. It reads the clipboard only on the press, only fills an empty box, never sends, and is not drawn where the browser cannot read the clipboard. - A full-height chat fits above the phone keyboard.
dvhfollows the browser toolbar, not the keyboard. iOS, and Android by default, shrink only the visual viewport and scroll the page instead, which pushed the chat's header off the screen. The layout setsinteractive-widget=resizes-contentfor Android, anduse-keyboard-viewport.tspublishes the visible height as--app-heightfor iOS. The full-screen chat focuses its box on load only with a fine pointer, so a phone does not open the keyboard over the examples. - Exercises have their own screen, on every device.
/practice/session(practice and the test) and/warmup/sessionopen a session screen (session/frame.tsx) instead of running inside a page: a close button, a progress bar and — in a timed test — the clock on top; the question in the middle, the only part that scrolls; and the answer buttons in a bar at the bottom, under the thumb. No site header, no footer, no dock launcher (the dock itself still opens from an explanation's "ask Heidi"). Answering inside a page made it jump: the streak line and focus panel above the question change height with every answer, and iOS Safari has no scroll anchoring. Here nothing above can move the question, and each new one starts at the top.- One tap in, from anywhere. The dock's launcher is split: «Üben» beside
«Heidi fragen», bottom right on every page but the session and the chat.
«Üben» opens the sitting the page is about (
quickScopeinsitting.ts): a situation's, a grammar topic's, otherwise everything mixed. Every other "practise this" link on the site is the sameSessionLink(session/links.tsx) straight into the screen, not to/practice, which asked for a second tap below the fold. - Choices come after starting, not before. The sitting's name at the top
opens a sheet (
session/settings.tsx): what (this page's scope, the current one, everything) and how (practice or test, mode). Every choice replaces the sitting in history, so close still goes to where the learner began./practicestays as the full chooser, and the warm-up page explains itself and starts the screen; the query strings are the same (sitting.ts). - A test needs half a run of markable questions in its scope (
TEST_MIN, ten ofTEST_SIZE's twenty). Below that the scope offers practice only, and a test link to it opens practice: «Bsitz andersume» had two markable questions and produced a two-tap test under a three-minute clock. The situations, «everything» and eighteen of the twenty-one grammar topics qualify. Modal particles and diminutive -li do not yet: what they add is mostly nuance, and a question's wrong answers must differ in meaning.perfect-auxiliaryis drilled by the auxiliary boards, which are several decisions at once, and a test takes single-tap questions only. - A topic's sitting also asks the questions the pack says that topic
explains (
pack.explains,scope.ts): every «which article?» belongs toarticlesand every time of day toclock-time, although they came from a word and a scene. - A situation's sitting is its sentences AND the words said in it
(
pool.ts,sittingPool): a word is in the scene when a phrase of it says the word.PRACTISABLElists the scenes and topics with questions, so no page offers an empty sitting. - Each view owns its buttons and hands them to the bar (
exercises/ actions.tsx); outside a session screen they render in place. - Closing keeps the place. The sitting is saved in the browser after every
answer (
resume.ts,heidi.practice.session.v2) and picked up for 12 hours when the same sitting is opened again; the button on/practicethen reads "Weitermachen — Frage 4 von 8". A finished sitting is cleared, and the test never resumes. - Close goes back where the learner came from (
?back=, through the same open-redirect guard as the language switch), otherwise to/practice. When this tab opened the session from that page, close is a step back in history and the page returns at the same scroll position (origin.ts, in memory only; after a reload it is a plain link).
- One tap in, from anywhere. The dock's launcher is split: «Üben» beside
«Heidi fragen», bottom right on every page but the session and the chat.
«Üben» opens the sitting the page is about (
- On a phone, the home-page chat takes the screen once the learner writes
(
focus-surface.tsx), with "Minimise" back into the page and "Continue full screen" out again; the conversation stays mounted either way. A restored chat stays in the page until the learner writes. On a wide screen it stays inline. - The account is one control, not three. An avatar menu replaced a gear
icon beside a pill with a green status dot that nothing measured. What is in
it comes from
ACCOUNT_MENU_KEYSinlib/i18n/routes.ts, so a menu entry naming a page the site does not have is a build error — the same rule that keeps the nav and the sitemap from disagreeing. - One dismiss implementation, for everything that opens over the page.
use-dismiss.ts. It had been written twice and the copies disagreed: one returned focus to its trigger on Escape and one dropped it to the top of the document. The mobile menu had neither, and no way to close at all short of pressing the button again — found by the test that asserts everyaria-expandedcontrol uses the hook. - The signed-out home page says what Heidi is for, straight under the
fold: «What Heidi solves», one person's moments (the group chat, the lunch
table, the Kindsgi, the doctor, the Gemeinde, the indirect no) and then a
city's (the switch to Standard German, care homes, workplaces, media, the
learner who cannot audit what they are sold). Each card is the problem, what
Heidi does about it TODAY, and a link that is a route key or a scene id in
lib/config/problems.ts— never a string — labelled with that page's own name. A card describes only what works now; nothing from §9's "next", and nothing §8 forbids.problems.test.tsholds the links and the seven languages.
6. The variety gate
A deterministic, model-free check over any text claiming to be the target variety. Findings carry a severity, ranked by how certainly wrong:
| severity | meaning | example |
|---|---|---|
unattested |
not a form of the language at all | ß in Swiss; ы in Ukrainian |
foreign |
a real form, of another variety | Bernese güet; Russian кофе |
dispreferred |
real here, but house style differs | — |
variant |
legitimate spelling variation — never shown as an error | — |
unattested outranks foreign deliberately: a Bernese form is a real word that
a real person says and the judgement is regional and arguable; a ß in Swiss
text is not a form of the language and no reviewer will overturn it. Ranking
these the other way round let both through the gate — caught by a test, which is
the argument for the tests.
One rule set, two thresholds. The generation gate rejects at foreign and
above. House style is checked at dispreferred for our own copy. A learner's
own writing is checked at foreign too — telling someone their spelling is
wrong in a variety with no standard spelling is the one thing this product must
never do.
Standard German leaking in is the commonest error, so the gate checks for it
too. The rules above name neighbouring dialects; on their own they let pure
Standard German through («Ich habe heute keine Zeit» passed). The pack's
leaks list names Standard German words Zurich German never uses (ist,
habe, hören, gehen, nicht, auch, wenn, heute, Zeit, and so on),
each with the Zurich form as the suggestion, plus the -ung ending (Übung →
Üebig, Wohnung → Wohnig). check applies both lists at foreign, so the
same rejection covers our copy, the scenes, the example sentences and anything
generated. Two policies keep it honest:
- Only words Zurich German never says. A word that is also a Zurich form
stays off the list, however German it looks:
will(Zurich «weil»),gern, andhöre/hört(they sit inside «ufhöre»).Achtung,Entschuldigungand words ending in-sprung/-schwungare exempt from the-ungrule. A false alarm teaches the wrong thing, so a doubtful word is left out rather than added. - Quoted German is allowed in our own copy. A grammar note has to say «gehen» to explain «gah». The site-copy test ignores Standard German findings inside «…»; dialect findings inside quotes still fail.
What we publish is held to more: the purity gate (lib/variety/purity.ts,
2026-11-26). A chat reply is written once and read once; a scene line is said
by somebody to another person. So every scene line and every hand-written
question sentence must also pass purityProblems, which reads three things
out of the pack and nothing beside it: no Standard German word where the pack
gives the Zurich form (its leaks, its correspondences and every one-word pair
of its word list — «Hauswart» where the list says «Abwart»); no marked form of
another dialect (the regional rules, each with its source — «gäng» and «äuä»
are Bernese, «üs» is the Weinland's); and one spelling per word, the pack's
(«gschlaafe» where the pack writes «gschlafe», two ways of marking one long
vowel). The pack is held to the same promise: a word it writes two ways is a
failing test. Run over the 412 scene lines of 2026-11-25 it finds 37 with a
problem — 29 spellings, 5 Standard German words, 4 Weinland forms («üs») —
four words spelled two ways across scenes, and the pack itself writing seven
words two ways (nüt/nüüt, gä/gää, gärn/gern …). What it cannot see: a word the pack has never written, a
wrong ending, word order, a German that does not say what the line says, and
a sentence that is pure and still not what anybody says. That is a reader's
work, and nativeReviewed still says nobody has done it.
Known limit: the regional judgements in gsw-zh.ts are inherited and have not
been reviewed by a native Zurich speaker. An LLM must not be the sole grader of
another LLM's dialect. A native panel is required before any generated dialect
reaches a learner.
The same gate applies to sound, and there it is stricter. Every argument
above survives being read aloud and gets worse, because written text can be
stared at and looked up while speech is gone the moment it is said. So
lib/voice/variety.ts judges what a synthetic voice is actually speaking, and
its rule is absolute rather than probabilistic: no synthesiser is ever
reported as dialect. Not "probably not" — no platform ships a Züridütsch
voice, de-CH is Swiss Standard German on every operating system in reach, and
§7.2 records the market selling the accent as the dialect. Dialect can only come
from a source verified to be dialect, which today means a recorded human being.
The consequence is what makes it worth having: because the gate knows, every control that speaks can say what it is about to speak, and does.
7. Corrections to the record
Findings that contradict what is currently published or assumed. These are here because being wrong in public is expensive and quiet correction is cheap.
-
SwissDial is CC BY-NC 4.0 — non-commercial. So is SDS-200, ArchiMob, SwissCrawl, the What's Up WhatsApp corpus and the sms4science corpus. STT4SG-350's licence is contested across primary sources (META-SHARE NonCommercial in one catalogue, CC BY 4.0 in another). No Zurich-region speech corpus has been confirmed usable commercially. Any plan that leans on one needs a licence in writing first.
-
"There is no purchasable Swiss German TTS" is probably no longer true. At least one vendor advertises commercially-cleared Züridütsch voices, and ZHAW/FHNW academic pipelines are close behind. Unverified independently — but it is published on the OrangeCat blog as fact and should be softened. Separately: most "Swiss German" TTS on the market is Standard German in a Swiss accent. Listen before believing a label.
The moat argument survives the correction, and is stronger for it. It was never really "TTS doesn't exist" — synthetic speech will keep improving. It is that every Zurich corpus is research-licensed, so a consented, commercially clean, richly annotated corpus built around perceptual learning is an asset nobody can download. That is a licensing and consent moat, not a technology gap.
-
Common Voice
gswis not safely "Swiss German" — the ISO code is shared with Alsatian. Filter by provenance, never by label. -
Swiss German ASR is an unsolved problem, and the honest published figure is ~25.6% WER after fine-tuning on 1,367 h; earlier, better-looking numbers are inflated by benchmark contamination and convention mismatch. The state of the art still transcribes dialect into Standard German — it translates away exactly the information a learner needs.
-
The landing copy overclaimed the Frisian result. "The lecture version was tested and did not work" implied more than one 50-minute study supports, and implied our alternative is the evidence-backed one when it is the untested one. Corrected in
lib/config/landing.ts.
8. Overclaim register — what we must not say
-
❌ "Sixty seconds and you will understand more." What is replicated at that timescale is processing speed (reaction time, single talker, lab measure), not comprehension accuracy, and it is not reliably durable past a week without further exposure. ✅ "In under a minute your brain starts adjusting to the sound, and here is that effect measured."
-
❌ "Learn to speak like a local." Perception training transfers weakly to production.
-
❌ "93% native pronunciation." Speech-score theatre; false precision.
-
❌ Any claim that correspondence rules are proven to help. They are our hypothesis, and we say so.
-
❌ Presenting a Zurich spelling as the correct one. There is no correct one.
-
❌ "Heidi speaks Zurich German." No synthesiser anywhere does. A
de-CHvoice is Swiss STANDARD German — the written language read aloud in a Swiss accent — and §7.2 already records that most voices sold as "Swiss German" are exactly that. ✅ "This is a Swiss Standard German voice, not Zurich dialect", said every time she speaks.lib/voice/variety.tshas no code path that returnsdialect, and a test feeds it voices named Züridütsch and Schweizerdeutsch Mundart to prove it is not fooled by a label. -
❌ "Heidi hears your dialect and corrects your pronunciation." She hears TEXT produced by a recogniser, and §7.4 says what that recogniser does: it transcribes dialect INTO Standard German. There is no confidence and no phoneme alignment anywhere in the correction path, so a score would have to be invented rather than measured. ✅ "Heidi cannot tell you whether your accent is right. Nothing can, reliably."
This survives the bridge transcript unchanged, and the distinction is the point. A take practised in Swiss Standard German IS sent to a recogniser, so "there is no audio in the correction path" is no longer the reason — the reason is the one that does not depend on plumbing. A word error rate tells you how often the transcript is wrong; it tells you nothing about how the speaker sounded, because the recogniser threw the sound away to produce it.
capability.tstherefore marks pronunciationrefusedrather thannone: not "not yet, at this accuracy", but never, at any accuracy, by decision. -
❌ Correcting the FORMS in a transcript of what somebody said. Those forms are the recogniser's spelling, not the speaker's — flagging
istornichtin a transcript corrects the machine and bills it to the learner, who may have saidischandnödperfectly. This is refused at every correction level rather than at the low ones. -
❌ Calling a machine reading Zurich spelling in a Standard German voice a model of the pronunciation. It is a way to find a word in a sentence, and the copy beside it says so.
-
❌ Publishing a listening source as dialect because it is Swiss. Half of Swiss broadcasting is Standard German by format, which is exactly the trap a learner cannot see;
lib/listening/sources.tslabels every row and names what the label rests on.
9. What is built, and what is next
Built: the conversation. One field on /, and no mode switch.
It had one — Understand or Say it — and the switch was the bug. Someone arrives with a communication problem, not with a decision about which of our tools to use, and making them classify their own problem first is our internal structure pushed onto them. The model decides now and reports which it decided; a follow-up ("why did they say it like that?") is an ordinary next message instead of a new query with no past.
It answers first and completely, because at 08:55 before a meeting someone needs the message decoded, not a lesson; the words worth keeping sit underneath and never block the thing they came for.
Dictation prefers the browser's own recogniser — free, instant, and no
audio leaves the device. But that API is a promise the browser does not always
keep: on Chromium builds without Google's speech service it accepts start()
and never fires an event, and Firefox does not implement it at all. So there is
a server fallback, and since 2026-09-15 it walks a CHAIN through
transcribe() in @bitbaum/ai-kit rather than being one fetch at one vendor
with one key. That function was added upstream in the same week, because the
fleet had three copies of the hand-rolled shape and the package that owns model
routing had the endpoint declared in its registry with nothing behind it.
Either way it is explicitly NOT a claim to transcribe DIALECT, which nothing does well — it transcribes what the learner wants to SAY, in a language they already have, which is the job the browser was supposed to do. §8 binds this.
Two packages, each doing its own job. threadkit owns the thread: who
participates, what each may see, and whether the assistant speaks at all.
@bitbaum/ai-kit owns the model call: which vendor, what to do when one dies.
Neither knows the other exists — the seam is a complete callback. That is
overkill for a two-party chat and exactly right for the next feature, because a
group thread with a tutor in it is the same object with a longer participant
list rather than a migration. threadkit already encodes the social rule we
would have got wrong: two participants means the assistant is the
conversation and answers every turn; three or more means it waits to be
addressed, since two humans talking is not an invitation.
What the model is shown is ours, not threadkit's. threadkit decides what
Heidi may see and whether she speaks; renderPrompt in lib/domain/chat/thread.ts
decides how that reads. The last 20 turns go in as context marked "already
answered", and the newest message is set apart under its own heading. Heidi's
past turns carry the sentence she wrote (answer.dialect), not only her
explanation of it. threadkit's own rendering, one undifferentiated "role: body"
list, made the model answer the THREAD rather than the last line: after three
turns about «Le Bilan», «Pire» got a fourth «Le Bilan» sentence in 4 of 6 live
runs. With the split it got none. The system prompt says the other half: answer
only the newest message, and a word on its own is a question about that word.
Four deterministic guards sit between the model and the learner, and all four exist for the same reason — the learner cannot check this work:
- Every generated line goes through the variety gate (§6) before it is shown, and a flagged line is marked rather than dropped, so drift is visible.
- A correspondence may only be cited if the pack vouches for it. Found in testing: asked about "Im Kauz" — a Zurich bar — the model decided Kauz was a typo for Huus and supplied the sound law "k → h". Confident, plausible, invented. Rules the pack does not list are now stripped.
- A word glossed against itself is dropped. The model kept explaining that freundlich means freundlich.
- A looping answer is refused. Seen live from a free model asked what a word meant: „verbi" ist ein Kurzwort für „verbi" = „verbi". Fluent, well-punctuated, confident, and empty. Sending that to someone learning the language is worse than sending nothing, because not understanding is the state they are already in and they cannot tell it is broken. It now surfaces as a failed turn with a retry.
Known limit, stated rather than hidden: the guards catch invented rules and looping form, not an invented fact. Asked about "Im Kauz" the model still offers a wrong gloss — confidently, in fluent German. Stripping fabricated lexical claims needs a Zurich lexicon to check against, and that is the next piece of linguistic work. Answer quality also varies run to run on the free model tier.
The AI layer is @bitbaum/ai-kit — freeChain + complete(), so a retired
model cannot take Heidi down, which is the failure that took five repos out at
once on 2026-08-26. With no key the route answers 503 and says so plainly
rather than pretending.
Also built since: the full-screen chat at /chat, which is the same
conversation as the box on the home page rather than a second one — expanding
carries the box's thread into the chat's list and continues it, and
nothing is passed in a query string where it would land in the access log, the
Referer header and browser history. Signed in, the server remembers: a
list of past conversations, resumable, renameable, deletable, searchable — and
a temporary conversation that is written nowhere. The
conversation row is created on the first message, not when the page opens, so a
"new chat" button that gets pressed and abandoned leaves nothing behind. It
escapes the site chrome with one CSS rule keyed on body:has([data-chrome="chat"])
rather than a second root layout, because there can only be one root layout —
<html lang> has to carry the real language of the page — and navigating
between two of them costs a full document reload.
Also study groups, where the thread has a longer participant list and threadkit's rule does the social work — two participants and Heidi is the conversation, three or more and she waits to be addressed by name. The invite link is the credential, so it is 192 CSPRNG bits kept separate from the group id and rotatable, because the only way to un-invite a link already sitting in somebody's WhatsApp is to kill it. And kept words: the gloss Heidi already produced on every answer used to be drawn once and thrown away, so looking the same word up on Tuesday and Friday accumulated nothing. One tap now keeps it, in the browser, with the sentence it came from.
And spaced reuse, which was the next item on this list and is now the dashboard. Kept words come back on an expanding schedule — a day, then three, then a week — and they come back as a QUESTION rather than a list, because being asked beats being shown by about half a standard deviation (Yang 2021) and spacing's advantage is larger on a delayed test than an immediate one (Kim & Webb 2022). Deliberately not SM-2 or FSRS: those model hundreds of reviews a day across thousands of cards, and fitting a curve to a learner's eleven kept words is the false precision §8 forbids. Fixed intervals carry the finding and nothing more.
Beside it, what keeps catching you — the correspondences that actually
separate the words they kept from the forms they already knew. Derived, not
tracked: no lookup counter and no record of what a particular person failed to
understand, because six kept words that all turn k into ch already say it.
And the answer now proposes what to do next. It used to end and leave the learner holding "…and now what?" — where every way out cost them a sentence they had to compose ("can you make that shorter", "how would I reply to this"), and composing a request ABOUT an answer is a harder job than reading it. Most people did not bother, which is why the product felt like a lookup rather than a conversation. The biggest gap it closes is the most obvious one: somebody pastes a message a Swiss colleague sent them, Heidi decodes it beautifully, and never asks whether they need to ANSWER it.
Two or three chips, each one tap, chosen by the model for that exchange. The rephrase axes widened from two to six, because shorter and warmer are not what people most often need — firmer is what you want when your landlord has ignored you twice, and formal is what an email to an employer needs.
The vocabulary is closed, and that is the whole design. The model picks ids from a fixed list; the dictionaries supply the wording in seven languages. A label the model wrote itself would arrive in whatever language it felt like, could promise something pressing it does not do, and could not be tested — there is no assertion to write about a string that differs every time. A test asserts every id has wording in every locale, so adding a move without its seven translations fails the build rather than rendering a blank button in six languages. Pressing a chip sends an ORDINARY message, visible in the transcript: a follow-up you cannot see is a conversation you cannot re-read.
And Swiss Standard German is now an output, not just a bridge. Zurich is diglossic, and the product had only ever produced the spoken half: dialect is what is said and what is written informally between people who know each other, while an email to a landlord, a doctor, an employer or an insurer is written in Swiss Standard German. Producing only dialect taught half the competence and quietly set people up to send a chat message to an insurance company.
This was already in the data model — de-CH is the pack's first sibling
bridge, the variety the correspondences are computed from — so the work was
using the design rather than extending it. A suggestion now carries which
variety it is IN, because the gate has to judge it against the right standard:
a Swiss Standard German line sent through the DIALECT gate is flagged as
not-Zurich-German, correctly and uselessly, and the learner sees a warning on
the one line that fits their situation.
And the bridge has its own gate, for the same reason the target does. Asked
for Swiss Standard German, a model will hand back Germany's German — fluent,
grammatical, and undetectable by the person reading it, who cannot know that
asking about a Fahrrad marks them as foreign in the first line. So: ß is
unattested (Switzerland does not use the letter at all), and Germany's lexis is
foreign with the Swiss form to use instead — Velo, Trottoir, Matura,
parkieren, Tram, Rahm, Sack. The list is short and certain on purpose;
a gate that nags about defensible choices trains people to ignore it, and is
then worth nothing on the day it is right.
And a kept word comes back somewhere new. The review card showed the sentence the word was found in — the same sentence every time — so the word got learned attached to that context rather than learned. It now carries one or two further sentences, generated once at save time and gated like everything else. Free for everyone, and that was a measurement rather than a concession: the call is about 174 tokens in and 60 out, roughly five hundredths of a rappen for the lifetime of that word, so a learner who fills the entire 500-word cap costs about a quarter of a franc. Gating that would be arbitrary, and people can feel arbitrary. Saving never waits for it: the word is written first and the call fires after, so a failure costs nothing anybody did.
A kept word's own sentence is only ever one it OCCURS IN (saved/context.ts):
the learner's line if they pasted dialect, otherwise Heidi's line or a
suggestion that has it. It used to be the learner's line regardless, so a word
kept from "how do I say…" came back on a card over the English request.
Checked again at display time, which repairs words kept before.
And any word is now askable, not just the ones Heidi chose to gloss. The word a learner is stuck on is by definition the one nobody predicted, so a feature that only worked on predicted words missed the case it existed for. Selecting a word in Heidi's half of the transcript offers to ask about it; the answer comes back with a gloss, and the gloss already carries the keep button — which is what finally joins "I did not know this word" to the review queue. Selection rather than a button per word, because wrapping every word would triple the DOM and wreck copy-paste, which is the most common thing anyone does with these messages.
And grammar has a place to live. Four things that stop a German reader
following spoken Zurich German — no preterite, wo as the universal relative,
possession built from the dative, and the -li that is on everything and often
means nothing small. Chosen by what blocks COMPREHENSION rather than by what a
grammar book would cover: somebody who reads German already has the vocabulary
and the word order, and what derails them is a past tense that does not exist.
Each topic is one sentence of rule, the forms beside the German they already have, and the thing that actually trips them. Not a chapter — the evidence this document already cites is that these work as cues beside something you are about to meet again and produce no measurable gain as a lecture you sit through first, so a page that taught Zurich grammar front-to-back would be the version that was measured and found not to work.
It is deep-linkable, and an answer that turned on a structure offers a chip
straight to the topic. The FORMS live in the variety pack and the WORDS in the
dictionaries, joined by topic id: Ich bi gange is Zurich German whoever is
reading, while the sentence explaining it has to exist seven times. A test
asserts the two sides of that join agree in every locale, and that our own
examples pass our own dialect gate.
And a reference section, built on one rule: a claim is DATA, gated and
tested, not prose somebody wrote. /dialect says what Swiss German is —
spoken rather than written, no correct spelling, not one language — and lists
every dialect area in the country. /vocabulary carries the words that
actually block a sentence, which are the short constant ones no sound
correspondence rescues, not the ones a phrasebook would pick. A test enforces
that: function words and verbs must outnumber the rest, or the page is a
phrasebook however it is labelled.
The area pages carry NO prose. Eleven areas across seven languages is seventy-seven blocks nobody here can check, and a machine-translated claim about where a form is spoken is how a reference page ends up confidently wrong in six languages at once. What is there instead is the endonym, the cantons, the town, and the forms the gate can actually tell apart — READ from the rules, so no page can show a form the checker does not enforce. An area we cannot place yet says so rather than inventing something plausible.
And the map now says which claim it is making. It drew family.planned —
a roadmap — which is why a reader asked where Graubünden was and got an answer
about product priorities rather than about language. Three things that were one
list are now three: where the dialects are, what Heidi will teach, and what the
gate can detect. All twenty-one German-speaking cantons are covered, and a test
says so.
Sourced, and the tests refuse an unsourced claim: the SDS for where a form is spoken, the Idiotikon for what a word means. Citing the atlas for a gloss would be a reference that looks right and does not support the sentence above it.
Built: a pasted message is read as a message, not as text. The situation this product exists for is that a letter arrived from a landlord, an insurer or a Verwaltung, it is half-readable, and it has to be ANSWERED. People paste the whole thing: headers, signature, the quoted chain of the last four replies.
Handed that raw, a model answers the quoted message rather than the new one,
spends its four glosses translating "Gesendet: Montag, 3. März 2025", and
never asks the obvious question. So the envelope is now recovered
DETERMINISTICALLY (lib/domain/chat/email.ts) and handed over as labelled
fields — from, subject, date, the new message, and a note that an older chain
was left out. Headers are one of the few things here that really are a regular
language, so they are parsed rather than inferred, and the header names are
matched in German, French, Italian, English and Russian because Outlook
localises them to the SENDER's interface language, not the reader's.
It refuses to guess. No recognisable envelope and no quoted chain means the paste is ordinary text, which is what most pastes are — a parser that found structure everywhere would mangle the two-line WhatsApp message that is the other half of this product's input.
And the reply offer no longer depends on the model remembering. The prompt
says reply is "the most useful button on this list and the easiest to
forget", and then asks a model to remember it — on a chain whose whole design
is that any vendor may be serving, including a small free one having a bad
minute. When the paste was deterministically recognised as a message addressed
to the reader, the offer is added by the harness (withReply) rather than
hoped for. It goes first, so the cap drops something the model guessed at
instead of the one move we are sure about.
The rephrase axes grew from six to eleven, and the five new ones are not
more tone dials. Six dials say the same thing differently; decline,
apologise, thank and ask change what the message DOES, and they are the
four a learner most often cannot perform in a language they half-have.
decline matters most and no phrasebook teaches it: saying no to a landlord
without giving offence is hard in your own language, and in a second one people
either agree to things they did not want or write something that reads as rude
and never find out. ask is the move for post that is too ambiguous to answer
— asking is allowed, and learners rarely believe it is.
Built: the reference pages do something. /vocabulary was two columns of
text, sixty times, and /grammar was a page to read. Everything the product
knows how to do with a word — keep it, ask it back at the right moment, meet it
in a new sentence — already existed and was reachable only from inside a chat
answer. Both pages now hand work to the assistant through one event
(lib/browser/ask.ts), and what they send is an ordinary sentence that lands in
the transcript as the reader's own message. There is no hidden prompt channel
anywhere in this product: a turn you cannot see is a conversation you cannot
re-read.
Built: /vocabulary answers "what do I learn next?" before it is a list.
Measured on production before the rewrite: 23,217 px tall on a phone, 226 words
each printing up to seventeen scene links, and nothing on it said which word to
learn, or whether the reader already knew any of them. A reference nobody can
act on is a wall. The page now does three jobs, in this order:
- What next. The ten highest-ranked words the reader does not know yet, and one button that starts a session on exactly those ten.
- Do I know these. Every row carries a status mark — ring for new, half for learning, full for known — as a shape, not a colour.
- Look one up. Search across both sides that ignores accents and dialect
spelling (
hardopfelfinds «Härdöpfel»), group and status filters, forty rows at a time.
The order is measured, not curated (lib/domain/vocabulary/rank.ts). A word
is worth learning early if you will hear it often AND cannot work it out from
German. "Often" is the number of scene lines that say it. "Cannot work it out"
is the inverse of guessable: a word is guessable when, after the pack's own
sound correspondences are applied, it is within a quarter of its length of one
of its German glosses («Huus» → «Haus»). Guessable words sink to the end under
their own heading, because the learner gets them for free. False friends are
never guessable, and they come first among equals, because a word you are sure
you know is the one that misleads you. About a fifth of the pack comes out
guessable, and a test holds that under a third.
Status is read, never stored. wordStatus derives it from what already
exists: the learner model's per-word answers (known once holds: at least four
asks, at most one in five missed) and the kept list (known at STEADY_STEP).
A second store of "known words" would disagree with the first within a week.
A session on named words is a real scope. {kind: "words", id} joins the
topic, scene and group scopes (?words=mir,nöd,… in the URL, capped at
MAX_SCOPE_WORDS so a link cannot ask for the whole pack). «Learn the next
ten», «practise this word» and the group button all go through it, so they
share the session, the review and the scoring every other scope has. A
sitting on named words asks EVERY one of them (orderSession's cover):
each gets a seat first, of whichever question kind the sitting has least of,
and the sitting grows past eight when it must. Eight seats for ten named words
shipped first, and two of the ten never came up.
A row is a line, and the rest is on demand. The line holds what decides
whether you know the word: the word with its article, the meaning, the
register, the false-friend warning, and the keep button. Opening the row shows
a sentence it is said in (the pack's own example, which every word has since
2026-10-01, written for the product and gated like any generated line; a word
added without one falls back to the shortest scene line that uses it), the
verb forms, how many scene lines use it with three
links, and «practise just this word» / «show it in a sentence» (which asks
Heidi). Deep links (#w-<word>) from
explanations clear the filters, page far enough down, open the row and scroll
to it. Escape closes an open row through useDismiss; a click elsewhere does
not, because the reader is comparing rows, not dismissing a menu.
Every verb carries its paradigm (since 2026-10-01; 87 verbs, 35 of them
new). A verb is learned by its forms, not its infinitive, so an opened verb
row shows a small table: person, Zurich form, German form. The rows are
ich, du, er, ONE plural (mir/ihr/si share a form, so the label reads
«we / you (pl.) / they»), and the past as the er-form of the perfect with its
auxiliary («isch gange», «hät gmacht»). The auxiliary is in the row because
it is half of what has to be learned (hocke takes si), and because a bare
participle is often the headword itself (cho). Modals stop at the present:
their past is the double infinitive, which verb-order teaches.
- Every form faces the variety gate (a test), and spellings follow what the
packs already publish (
cha,gaasch,gää,gno). Like the rest of the pack, none of it has been reviewed by a native Zurich speaker yet. - The form drill asks each present row with the verb's own distinct forms as
options:
ich chaander chaare one button, not two. The past row is shown but not asked there, because «hät gmacht» beside four one-word forms is picked by its length. 13 form questions became 348. - The past row is drilled on its own, as the auxiliary board (
auxiliarykind): four verbs, each «er [isch | hät] gange». One verb alone would be a coin toss; four are one chance in sixteen, and side by side they show the rule (movement, change and position takesi). Each board mixes both auxiliaries, the German shown is the infinitive only (the participle in German would give most answers away), and a wrong board explains itself withperfect-auxiliary. Ten boards from the 87 past rows. - A grammar topic can name the words whose forms it explains (
words).modalsnameschönne,müesse,wele,dörfeandsölle, so a sitting on it drills «ich cha, du chasch, mir chönd» and a wrong answer links to it. - The inspiration for doing this properly was a published book of the 100 most useful Swiss German verbs. Nothing was taken from it: the method (forms and past, not lists) is ordinary, and every form here is written for Heidi.
Built: what a computer can and cannot do with this language, published. §8 is an overclaim register — a list of things this product must not say, the largest of which is that it transcribes dialect. The strongest form of that discipline is not a promise to be careful; it is publishing what the field can actually do, with the numbers, so a reader can hold our claims against it.
/technology is that page. Five public speech corpora with their hours,
speakers, regions and licences; three ASR results as word error rate on one
test set so they can be read against each other; four speech-synthesis systems;
three language models. Every row names a paper, and the thirteen new sources
were each opened and checked against the claim they support.
The central fact is visible in the table without a word of argument: almost every Swiss German speech corpus pairs dialect SPEECH with STANDARD GERMAN text, because in a diglossic country writing down what was said is a translation task rather than a transcription one. That is why "Swiss German speech recognition" nearly always means "produces Standard German", and why Heidi's dictation does too.
Three things the page says that a product page would not:
- The best Swiss German word error rate we could verify is 12.1%, and those weights are not published.
- Most voices sold as "Swiss German" are Swiss STANDARD German — the written language read aloud. Real dialect synthesis is research prototypes.
- Apertus, Switzerland's open LLM, carries a Swiss German component of 6,000
post-training examples and publishes no dialect evaluation at all. The
table marks it
dialect not evaluated, which is the difference between a claim and a result.
Its numbers live in lib/research/language-tech.ts and not in the
dictionaries, for the reason the citations do not either: a figure is not
translatable, and seven copies of "343 hours" are seven chances for one of them
to become 340. The English note on each row is maintainer copy and is
deliberately NOT rendered — providers.ts already records what happens when an
English source-copy field reaches a component.
Built: the explanation arrives as it is written. Every answer used to appear at once, after a silent wait of up to 25 seconds.
Only the explanation streams, and that is a safety property rather than a
scoping decision. text is prose in the reader's own language, and §6's gate
must not judge it — it would flag ordinary German words. Everything the gate
DOES judge waits for parseAnswer: the dialect line, the suggestions, the
invented-correspondence strip, the gloss-against-itself drop, the
degenerate-loop refusal. A learner cannot audit dialect (§2), so a form shown
before it has been checked — even for a second, even unmarked — is the failure
this product exists to prevent. The prose streams; the language waits for the
checker.
That needed a primitive the repo did not have. The answer is a JSON object, so
raw tokens read {"mode":"understand","text":"Sie f. extractJson already
repairs truncated JSON and is no use here: it repairs by cutting back to the
last COMPLETE value, so a string still being written is discarded entirely and
the explanation would appear in one jump when its closing quote arrived.
lib/domain/chat/partial.ts reads a half-written string instead — a real scan
tracking string state rather than a regular expression, because the one thing
people paste into this product is text they did not write, and that is
occasionally JSON. Its test asserts the property streaming actually needs:
every prefix of a real answer is showable, never leaking a quote, a brace or
half an escape.
It is an OBSERVATION on the existing turn, not a second path — respondInThread
takes an onText and swaps complete for ai-kit's completeStream; threadkit
still decides whether Heidi speaks and every guard still runs on the whole
answer. One route, too: the rate limit, the input ceiling, the picture checks
and the history rebuild are the part that must not diverge, so only the reply
shape branches, at the last possible moment. Tests assert the guards hold
through both shapes.
A streaming turn always ends with a terminal event. A stream has sent its headers by the time anything goes wrong, so it cannot report a status — and a stream that merely stopped would be indistinguishable from a vendor dying mid-sentence, which is the likeliest failure here. Silence is not a status.
ai-kit stops falling back once a link has produced its first token, because
replaying from a second vendor would make the reader watch the answer restart.
A break after that is StreamInterrupted and reaches the reader as an ordinary
failed turn: half an explanation with no gated dialect under it is not an
answer, so the partial is discarded rather than kept.
And now there is a place to open your mouth. Study groups were a thread with more than one human in it; speaking rounds are the same social object with the medium changed, which is the half a diglossic variety otherwise gives away for free. Two shapes, because the difference is social and decides the capacity: a webinar is one voice and an audience, a circle is everyone in turn and holds eight. Topics are proposed by the people who would come, not programmed — the one thing a language school cannot buy is a room of adults who want to talk about the thing on the board, and the cheapest way to get it is to stop choosing the thing.
"Regularly" is a field rather than a row somebody remembers to create, and that made this a time-zone problem rather than a scheduling one. A round is an absolute instant; a repeat is a wall-clock promise. Those disagree twice a year, and adding 7 × 86,400,000 ms to a Tuesday in March produces a Tuesday at 20:00 and an empty room. So the recurrence is computed in the zone's calendar and converted back, and the tests cross both Swiss changeovers in both directions. Sittings are COMPUTED, never stored: a table of generated occurrences is a table extended by a job nobody notices has stopped.
Heidi does not carry the meeting. meetingUrl is an https room the host
already has — and https only, because that string is rendered as a link for
every attendee, so accepting the scheme as given would accept javascript:.
Building an SFU is not this product. What Heidi owns is the part nobody else
does: the topic, the repeat, who is coming, and the take you record around it.
And the take is where §8 had to be obeyed rather than quoted. The obvious build for "evaluate my speaking" is a pronunciation score, which the overclaim register bans by name, and §7 says why it would be worse here than anywhere: Swiss German ASR is unsolved, the honest figure is ~25.6% WER, and the state of the art transcribes dialect INTO Standard German — it translates away the exact thing being learned. A score on top of that is a number with nothing underneath it, handed to the one person who cannot check it.
So the evaluation is three things that are each true:
-
The signal is measured, in the browser. How long there was sound, where the gaps fell, the longest one, whether the microphone clipped. Arithmetic over samples — reproducible, checkable by anyone with the same audio, and true whatever language was spoken, which is why it works for Lesya unchanged. Nothing in it knows what a phoneme is. A test asserts no field of the result reads as a rating, because the way that ban gets broken is not somebody disagreeing with it — it is a well-meaning
scorefield appearing because a designer wanted one number for the card.The measurement also now prints the LENGTH OF THE RECORDING beside the time spent speaking, and that is a correction rather than an addition. "You spoke for 16 seconds" is not one finding, it is two — a complete short answer, or a microphone that stopped hearing — and the screen printed it with no denominator anywhere on it, so a learner had no way to tell which they were looking at. Same defect, same class as the overclaim register: a number presented as more settled than it is.
And a real bug sat under it. A cough, a breath or a lip smack inside a long silence is a run of sound too short to be speech; the segmentation discarded it as a run while still letting it END the gap before it and START the gap after, so ONE silence of 1.9 s was reported as two of 0.9 s. The count inflated, the longest pause understated, and
pauseCountwas free to exceedrunCount— impossible for gaps that by definition sit between runs. Seen on a real take: 16 s of speech with 14 pauses and a mean run of 1.5 s, which is about eleven runs with fourteen gaps between them. Fixed by dropping the blips before segmenting rather than during, and the invariant is now a test rather than a property of the loop. -
The learner writes down what they said, and the honest reason is on the screen: nothing transcribes this dialect, and a machine transcript labelled "what you said" would be wrong in precisely the way they could not detect. The friction buys the only version of this feature that is not a lie, and writing it out is a retrieval act rather than dead time.
-
Their own words go through the deterministic gate (§6), then one model suggestion on top of text they confirmed — gated like every other generated line. Only
foreignfindings survive: a real form of another variety is a word-choice fact with a spoken correlate, whileunattestedfindings are orthographic and there is no way to SAY aß. Flagging one would be telling somebody their spelling is wrong in a variety with no standard spelling, which §6 forbids outright.
The pause threshold is 250 ms, for a phonetic reason rather than a tidy one:
the silence inside a t is tens of milliseconds, so a lower threshold reports
a person's own consonants back to them as hesitation. Where the sound/silence
threshold is ambiguous the code takes the reading that finds MORE speech and
therefore fewer pauses — between a measure that flatters and a measure that
accuses, the honest failure is the one that flatters, because a pause we missed
costs nothing and a pause we invented is the product telling somebody they
hesitated when they did not.
Comparisons are with the learner's own previous take, need a difference beyond measurement noise, and are refused between takes of wildly different lengths. Both directions are reported; a product that only reports improvement is not measuring anything.
The stated limit has been closed, and it was closed by asking a question the product had already answered. This paragraph used to say that offering a machine transcript where one would be trustworthy was NOT built, because no pack with usable recognition had a deployment to test it against — build it at the second consumer, not the first.
That was wrong about its own pack. packs/gsw-zh.ts declares
bridgeRecognition: { available: true, returnsSpokenVariety: true, wer: 6.4 },
evidence.ts reads that as words, and capability.ts had been computing a
verdict of bridge for fluency, vocabulary and grammar the whole time. The
second consumer was never needed: the first pack was already two varieties, and
Zurich is diglossic, so the German a learner must actually speak at a doctor's
desk, a Verwaltung counter or an insurer's phone line IS the one with a
faithful recogniser. Everything except the branch that offered it existed and
was unit-tested. lib/speech/fluency.ts, syllables.ts and grammar.ts had
no importer in the app at all.
So the practice screen now asks which variety this take is in, and the answer decides what may be said about it:
- Züridütsch — unchanged, and the default. The signal is measured on the device, the audio never leaves it, the learner types what they said. §7 in full force.
- Swiss Standard German — the recording goes once to a recogniser, the
transcript comes back as the learner's own words, and speech rate,
articulation rate, filled pauses and the gate all have something to work on.
Then
dialect-marker.tschecks the vendor's answer on every take, so "you used dialect words while practising Standard German" is a finding rather than a silence — and so a vendor that quietly starts translating is caught by the product rather than by a lab.
Nothing in that branch names a language. lib/domain/speaking/varieties.ts
asks the pack; a pack whose TARGET recogniser becomes faithful — the Swiss
dialect-preserving vendors in lib/research/language-tech.ts, the day somebody
tests one — gains all of it by editing one object, and a pack with neither
renders no switch and the screen is exactly what it was.
What did NOT change is the ban. There is still no pronunciation score, in
either mode, at any word error rate. capability.ts marks it refused rather
than none precisely so that a future contributor reading the verdicts as "not
yet" does not implement it when the WER drops. A rate is a measurement of an
utterance; a nativeness score is a judgement about a person.
And the rate is reported as a PAIR, never as a number. Speech rate and articulation rate separate two problems that feel identical from inside and have opposite fixes: equal articulation with a slower speech rate is somebody who has the words and is hunting for them, which is answered by saying the same thing again immediately. Neither is compared with a norm, because no norm exists for an adult talking about a topic they chose, on a phone, in this language — and inventing one for a progress bar is the false precision §8 forbids wearing a lab coat. Where the two rates do not separate, the screen says nothing.
Built: the spoken channel, and the gate that had to come with it. The product could read and write a language that is mostly heard. Three things changed that, and the third is the one that took the thinking.
Heidi speaks. A speak control sits beside every copy control — on the dialect line and on each suggestion, which are the lines a learner has to produce and the ones "what does this actually sound like" was unanswerable for. The browser's own synthesiser, for the two reasons dictation chose it in the same order: free and instant, and no text leaves the device to be read back.
And she says what she is speaking with. No browser ships a Zurich voice —
de-CH is Swiss Standard German — so lib/voice/variety.ts is the variety
gate for sound, and has no path that returns dialect at all. That is not an
omission for a later commit to widen; it is the claim the module exists to
refuse, and a test feeds it plausible Swiss-sounding voice names to prove it.
The claim rides in the flow of the page rather than a tooltip: phones have no
hover, screen readers announce it last, and the learner cannot hear the
difference, which is the whole reason they are here.
Correction is a setting with three rules above it. Never spelling, because
there is no correct one (§6). Never pronunciation, and that is structural
rather than principled — the correction path receives no audio, no confidence
and no alignment, so a percentage would have to be invented. And never the
forms in a transcript, which is the one that is easy to get wrong and silently
ruins the feature: §7.4 says recognition transcribes dialect into Standard
German, so a learner who said isch and nöd perfectly gets back ist and
nicht and would be corrected, confidently and in detail, for being right. So
speech is not variety-checked at any level.
One correction surface. feedback.ts judges a spoken take the learner
WROTE DOWN, and keeps only foreign findings: an unattested finding is
orthographic and there is no way to say a ß. lib/voice/correction.ts holds
the setting and its three levels. A second mapping for typed text
(corrections, with its three named silences) was written, tested and never
called by any screen; it was removed on 2026-11-25 rather than kept as an
engine nothing runs.
The practice screen is a composition (speaking-practice.tsx) of pieces
under _components/speaking/: use-take.ts (the variety, the recorder, what
was measured and typed), use-heard.ts (the one upload and what came back),
and the views variety-switch, record-control, said-panel, take-figures,
heard-analysis, progress-strip and history. The wired tests read all of
them as one text, so moving a line between pieces cannot hide a broken join.
A take can answer a task. lib/domain/speaking/tasks.ts builds tasks from
the say lines of the situation packs and shows each as its Standard German
meaning («Sag: …»), never as the sentence to read out; free talk stays the
default. Whether the meaning got across is one of three words — yes, partly,
no — with the first missing content point (meaning.ts), and the points a
verdict may name are the task's own: the route looks the task up by its id, so
no text from the browser reaches a prompt except the learner's sentence. On
the dialect the verdict rides in the take's existing model call and judges the
sentence the learner typed; with nothing typed the screen says «Heidi kann
Dialekt nicht mitschreiben — tipp, was du gesagt hast». In Standard German it
is one call, about the meaning only, made when the learner presses «Ist es
angekommen?» and never by itself. There is no pronunciation score.
After a take there is ONE next step (advice.ts): fix the recording, type
what was said, say the missing point, the same again in less time, the same
once more, or a new task — in that order. «Nochmal, kürzer» climbs speechkit's
pocket ladder (120, 90, 60 seconds; ladder.ts adapts a signal measurement to
its Attempt), and the recorder stops at the step's limit. The pause trend is
shown from the second delivery on; the rate trend only when every delivery had
words. Takes in heidi.takes.v1 gain optional variety, taskId, ladder
and meaning; older takes stay untagged.
The task's own line is shown after the attempt (model-line.tsx). In
Standard German it can be heard in the device's or the server's voice, labelled
as a machine voice. In the dialect it can only be read: the pack says
tts: false, so nothing is synthesised and the screen says Heidi has no Zurich
voice for it yet.
Built: where to hear it, as a register. The recordings the listening lab
waits on do not exist yet. The largest source of dialect exposure in the world
does, and it needs no corpus and no licence: the media the Swiss already make
for themselves. lib/listening/sources.ts is fifty of them — podcasts, radio,
YouTube, television, series and films — and what makes it more than a list of
Swiss channels is that every row says WHAT IS SPOKEN.
That is the same lemons problem §6 built the gate for, one level up. Swiss media splits along the diglossia in a way nobody tells a learner: the evening bulletin is read in Standard German and the magazine after it is in dialect. Somebody sent to the Tagesschau to practise Swiss German gets an hour of the German they already have, concludes this is easy, and is no closer to the lunch table.
basis is required on every row and listened is claimed nowhere, because
nobody here has sat down with these programmes and written down what they
heard. A test fails the moment a row claims it, so the day somebody spends that
afternoon, the page copy has to change with it. There is no difficulty number
anywhere — what is written down is observable (how many voices at once, read or
spontaneous, whether publisher subtitles exist) and demand() derives an
ordering, so an argument about the ordering is an argument about four weights
in one place.
Two things the register knows that a reader would not: the famous Swiss films
and series are mostly BERNESE, so working through them trains a Zurich learner's
ear on a dialect two hours away; and Zurich material specifically is scarce —
four rows against a dozen pan-Swiss ones, which is why area is a preference
in the flow and never a filter.
Kept honest by scripts/check-listening-links.mjs, which has three verdicts
rather than two: a Cloudflare challenge is not a dead link, and only GONE fails
the run. Its first pass caught youtube.com/@srf3 answering 200 under the name
SRF Unterhaltung, and its own normaliser calling TeleZüri a mismatch because it
decomposed the umlaut to a bare u where the publisher writes ue.
Built: where you need it, and the claim it was standing under.
/situations holds six scenes from a care shift — handover, the morning, pain,
meals, the evening, visitors — sixty lines with their Standard German beside
them, each marked hear or say, each linking the grammar topic it turns on.
Twenty-seven of them became practice items, which took the pack's question
count from forty to sixty-seven.
It was built in this order for a reason that is worth recording as a fault
rather than a feature. sectors.ts had been telling a Heimleitung since it
shipped that Heidi "practises the sentences that are actually said on your
ward" — and the product held forty-eight words, of which none was said on a
ward. That is the §8 failure exactly, on a live public page, ours. The fix was
not to soften the sentence. It was to build the thing and then say what it
actually is: sixty lines WE wrote for six scenes, machine-checked for Zurich
forms, unread by any native speaker — and to put a link on the sales page
straight to them, so a care-home director can judge the content in two minutes
rather than take a sentence's word for it. A sector row with proof links to it
and a row without one does not, and that asymmetry is now the most useful thing
on /organisations: it is how a reader tells which of the six we have actually
built for.
Next, in order: capture what the learner did not know into a learner model — the existing Heidi GPT generates that evidence daily and throws all of it away, and every question asked of it is a labelled datapoint about what a real learner could not understand; then the listening lab, once there are recordings to put in it.
Three loops explain Heidi better than any feature list: Three things the spoken channel now makes concrete, in the order they are worth doing:
- Listen to the register and flip
basistolistened. It is the cheapest real improvement available to this product — an afternoon per dozen programmes, no corpus, no licence, no model — and it converts forty careful inferences into forty facts. - A verified dialect voice. §7.2 says at least one vendor advertises commercially-cleared Züridütsch, unverified by us. Verifying one would be the first time Heidi could speak the language she teaches; the gate is already built to receive it, and nothing else has to change.
- The listening lab, which is where the register and the recordings meet: a source a learner can already reach, a measurement of what they caught, and the same speaker-change effect the two loops below describe.
Built: your channels — the listening lab, on the media that already exist.
2026-10-22. The lab waited on recordings nobody had made. The largest
source of exposure in the world does not: the YouTube channels a learner
already watches. So the exercise below ships on those first, in the order the
owner asked for it — understanding first, Standard German first, dialect when
the transcript question is solved — and the register (/listen) is where the
channels come from.
What it is, concretely (lib/channels/, /channels, /channels/<video>):
- Follow a channel. Paste a channel link, a video link or an
@handle; the register's YouTube rows are offered with theirspokenlabel beside them. No API key: the channel's public Atom feed is read (youtube.ts,parseFeed), the page behind a handle names its id, oEmbed names a video's channel. A channel is followed only once its feed has answered, and its back catalogue arrives marked as dealt with — following rings for the NEXT video, never the last fifteen (sweep.ts,recipients). - The sweep. Hourly on the box (loki
install-app-crons.sh→/api/cron/channels, bearerCRON_SECRET), and inline for a learner's own stale channels when they open the page, so the page is right on a box where the timer was never installed. It reads XML and sends pushes. It calls no model — the fleet's rule (2026-09-25) that nothing in the background spends the free pool. - The notification. Web Push, per browser, VAPID keys from the
environment (
lib/push/send.ts, after Loki's). It says one thing, in the browser's own language: «<channel>: neues Video», the title, a link. Never a reminder to practise — §3's rule about loss framing, kept here where a phone's lock screen is the most tempting place to break it. The dashboard shows the same videos with the new ones marked, for everybody who did not turn the push on. - The exercise is the design below, unchanged in its order: a gist question shown BEFORE the first listen; three to five detail questions, multiple choice, in the bridge, testing meaning; each wrong answer answered with «Hier gesagt:» and the line, with a button that plays exactly that segment (the IFrame API can seek); then the transcript, tap a line to hear it, the lines that answered a missed question marked. The summary is a count with a denominator and the lines to replay. No score.
- The transcript, and the honest part. It is the platform's captions —
the publisher's where they exist, the automatic ones where the pack says
automatic recognition in that language is worth trusting
(
accepted.ts: the target and its sibling/roof bridges; never a gloss language, never automatic captions in the target variety when the recogniser translates it away). Its source is printed above every transcript and every question set: «Untertitel des Senders», «Automatische Untertitel — maschinell erstellt, bei Mundart oft falsch», or «von Hand eingefügt». That is §8's rule carried to the one place a learner would take a recogniser's guess for a fact. - The questions are written by the model from the transcript, once per
video on the first follower's request, and shared (
questions.ts). What comes back is refused unless every detail question cites a line that exists, the answer index is in range and the options are distinct — a learner told «wrong» by a question whose answer is not in the video is §8's failure one level down. Two attempts, then «Heidi konnte keine brauchbaren Fragen schreiben» and the transcript alone.
Podcasts are feeds too, and from 2026-10-22 they are in the same loop. The
register's podcasts are what most learners already listen to, and a podcast
is RSS with an audio enclosure per episode — the same shape as a channel's
Atom feed, read by the same sweep (lib/channels/rss.ts, source.ts). A
pasted publisher page is resolved to its feed through the page's own
autodiscovery link, an Apple Podcasts link through Apple's keyless lookup;
Spotify publishes no feed and the form says so. Every podcast and YouTube
row on /listen carries «Folgen». An episode plays in the browser's own
<audio> element — seek, back five seconds, 0.75× with the pitch kept — which
is the whole of the player the lab design asked for. Its transcript is the
publisher's where the feed links one (<podcast:transcript>, SRT, WebVTT or
the namespace's JSON); otherwise Heidi listens to the opening minutes
herself with the bridge recogniser the speaking surface already uses (the
first six megabytes of the enclosure by a Range request, once per episode,
shared), labelled as automatic WITH how far it reaches, when the pack trusts
a recogniser for the bridge.
On a dialect source that text is a RENDERING, and it is called one. A
recogniser translates dialect away, and a text that is not what was said is
not a transcript (§8) — so it is never shown as one. Until 2026-11-09 that
meant a dialect podcast played without questions. It now gets a Standard
German rendering of what was meant (transcript.source: "rendering"), labelled
above every line as «Auf Hochdeutsch, automatisch: … sinngemäss — nicht der
Dialekt, wie er klingt», set as German (lang="de"), and the questions are
written from it about CONTENT only. That is the job a rendering can do:
comprehension questions test meaning, and meaning is exactly what survives
translation. What it can never do is tell a learner which dialect form was
used, and nothing reads one from it.
Machine text of dialect gets ONE question, about the whole
(lib/channels/policy.ts, questionScope). A detail question is keyed to a
single line, and the pack records a 25.6% word error rate for recognising the
dialect, so a key built on one such line can be wrong. A rendering, and
automatic captions on a source the register does not list as Standard
German, therefore get the gist question and no detail questions, and the
lesson says so in one line. Captions a publisher or a learner supplied, and
automatic captions on Standard German audio, keep the full set. A stored set
carries version, scope and the pack's tag; one from before, or written
under another scope, is written again the next time the piece is opened.
A lesson is about one clip (lib/channels/clip.ts, pickClip): one
contiguous stretch of 30 to 90 seconds after the opening 20, starting and
ending on a sentence where the text allows. The model reads that stretch only
(about 1,500 characters instead of 9,000) and cites the transcript's own line
numbers; both players are held to it, with the clip from its start, five
seconds back and 0.75× speed. A piece too short to cut from is asked about
as a whole.
An option may not copy the transcript (copyFault in
lib/channels/questions.ts). A right option sharing four consecutive words
with its evidence line, or a wrong option that stands in the clip word for
word, is refused; generation is tried once more, and the question is dropped
if it is still there.
The order of a lesson is a reducer (lib/channels/lesson.ts): the gist
question before the first listen, the answer, a second listen with the detail
questions where the scope is full, «Hier gesagt» with a replay of the line
after each answer, then a count and the lines to hear again. The transcript
opens by itself only after the attempt; «Transkript jetzt zeigen» is always
there for somebody who needs the text. Before the first listen up to three
words are named as «Wahrscheinlich zu hören» (lib/channels/keywords.ts): pack
vocabulary whose Standard German form stands in the clip, the forms furthest
from Standard German first, found without a model call and only where the
source is not listed as Standard German. heidi.videos.v1 also keeps the
pack tag and how often something was played again.
Why this and not a dialect transcript, measured on 2026-11-09: no product or
public model writes Zurich German speech in dialect spelling reliably — the
one third-party benchmark found puts the best at about 46% of words right —
while Whisper renders Swiss German into Standard German at about 23% WER,
mostly rewordings rather than wrong meaning (Dolev et al. 2024, arXiv
2404.19310). A dialect transcript a learner could trust would take a human
writer; that stays the gold standard for the curated material Heidi records
itself. A channel followed by its feed rather than the register's page is
matched to the register by name on the publisher's domain
(lib/channels/spoken.ts), so "dialect" is known however it was followed.
The thing that does not work from a server, said plainly. YouTube answers
a data-centre address with «sign in to confirm you are not a bot» for the
caption tracks (checked 2026-10-22 from a sandbox: feed 200, handle page 200,
watch page 429 via Google's interstitial, every InnerTube client
LOGIN_REQUIRED). The box may or may not be refused on a given day; the code
assumes nothing and the refusal is a first-class state (blocked), not an
error. The screen then shows the way through on the same screen, per the
no-dead-ends rule: open the video on YouTube, «… mehr» → «Transkript
anzeigen», copy, paste. parsePasted reads the panel's format, SRT and
WebVTT, and the result is labelled as pasted. A server-side transcription of
the audio (yt-dlp + the bridge recogniser) was considered and not built:
the download meets the same block, and it would put a machine transcript of
dialect on the screen, which §8 forbids.
Where the learner's data sits. The follow is the one fact that has to be
on the server — a closed browser cannot poll — and it is the only one:
channel_follows holds the channel id and when. What they answered is in
their browser (heidi.videos.v1), like every other measurement of them, and
feeds the streak. The transcript and the questions are per video and shared,
because neither is about a person. All of it is on /privacy, by table and
key, including the embed itself (the player is YouTube's; it sees an IP the
moment it plays — the youtube-nocookie.com host, so no advertising cookie
before that).
What this is not yet. Dialect videos with no publisher captions get no
questions, and the page says so rather than guessing. Keeping a word from a
transcript line into review, and the transcript's lines becoming practice
items with a listen scope, are the next two steps of the design below and
are not built. The speaker-change measurement the lab was designed for needs
the unheard test speaker, which a learner's own channel is not.
Designed, not built: the listening lab
Status 2026-10-01: design agreed on paper; blocked on recordings. 2026-10-22: built on followed YouTube channels first — see «Built: your channels» above; the recordings remain the way to a Zurich transcript that is exact.
The exercise. Watch or listen to one piece, answer questions about what was said, then see the transcript, with every question tied to the line that answers it. Comprehension is the product's own metric (§1), and this is the first exercise that measures it on running speech rather than on one sentence.
Why it needs a transcript, and why we cannot borrow one. A question is only fair if somebody knows exactly what was said, and a machine cannot be that somebody (§8: the recognisers write Standard German, and Zurich spelling from them would be the machine's). Searched 2026-10-01, the Swiss German audio that HAS a dialect transcript falls into three groups, and none of them can be republished here:
- Research corpora. ArchiMob (oral-history interviews, utterance-aligned dialect transcripts) is CC BY-NC-SA, non-commercial. SwissDial (about 3 h per dialect, Zurich included, with dialect and Standard German text) is research-only, no redistribution. STT4SG-350 and the Swiss Parliaments Corpus pair dialect speech with STANDARD German text, so they are no transcript at all for this purpose.
- Learner podcasts. «Beyond the Alps» (Züridütsch, hand-written transcript per episode), «Swiss German Storytime» (dialect and Standard German transcripts) and «Easy Swiss German» (workbooks) keep their transcripts behind Patreon or a sign-up: paid work by one person, not ours to copy. «Lose, läse, lafere» (Schweizerdeutsch mit Naira) publishes its texts free, but mostly in Bernese, and still under the author's copyright.
- Broadcast. SRF subtitles, where they exist, are Standard German.
So there are three ways to get content, in order of preference:
- Our own recordings of our own text. The scenes are already written, gated and translated, about 380 lines across 19 scenes. What they are not is dialogue: they are phrase lists. A native Zurich speaker (two for a dialogue) records short scripted conversations built from them, which we own outright. The transcript is exact because it came first. This is the only option that is commercially clean, exactly transcribed AND Zurich.
- A licence from a learner podcast that already transcribes by hand in Züridütsch: their audio and transcript with attribution, our questions. It adds unscripted speech, which scripted recordings cannot.
- Embed plus our own questions (YouTube or SRF, never re-hosted). The questions are our writing, and each answer quotes only the line it needs, which Swiss citation right (Art. 25 URG) covers where a full transcript would not. But somebody has to transcribe the passage for us first, by ear, which is the expensive part, and it only scales with a person.
The flow, and why each step is where it is. Two passes, gist then detail, is the standard shape of listening teaching (Field 2008), and every step below answers a specific failure:
- Before. Title, who is talking, where, and at most three words that
would otherwise block the whole piece, each linked to
/vocabulary. No transcript, no questions yet. Context first is what lets a learner use the top-down half of listening; without it, a beginner hears noise. - First listen, for the gist. One question is shown BEFORE playing
("What does the caller want?"), so the learner listens for something.
The player has play/pause, back 5 seconds (the control learners use most,
so it is the biggest one) and 0.75× speed with pitch kept
(
preservesPitch). Subtitles are off. - Gist answer, then second listen with the detail questions now visible: three to five, multiple choice, in Standard German (the bridge, as every practice question is). They test meaning, never spelling: this is listening, and a typed answer would test the gate rather than the ear.
- Feedback per question. Right or wrong, then «Hier gesagt:» with the dialect line, its German, and a button that replays exactly that segment. This is the step that teaches: the sound and the text meet at the moment the learner wants to know what they missed.
- Transcript. Everything, line by line. Tap a line to hear it, show or
hide the German per line, and keep any word in it, which puts it into
review (
useSaved). Lines that answered a missed question are marked. - From the transcript into practice. Each line becomes items in the
existing pool with its own scope (
{kind: "listen", id}), so a missed line comes back in review like any other.
Rules the screen keeps.
- «Transkript jetzt zeigen» is always available. Hiding text from somebody who cannot hear the audio is an accessibility failure, not rigour, and the WebVTT captions built from the same lines are there for the same reason.
- No score and no percentage, for the reason
summarisegives: five questions cannot support one. The summary is counts and the lines to replay. - On a phone the player sticks to the bottom of the screen while the questions scroll, so replaying never means scrolling back up.
- Replays are counted per line in the browser only, as a signal for which lines to bring back, and they are never sent anywhere.
The data, and what the tests hold. One ListeningPiece per recording:
source (own, licensed or embed), licence and attribution (required,
like every register row), media (audio or video, duration), speakers, area,
the demand() inputs, lines (start, end, speaker, target, bridge),
and questions (stage: "gist" | "detail", prompt, options, answer,
evidence: the line ids that answer it). Tests: every line passes the gate;
times rise, do not overlap and stay inside the duration; every question
names evidence that exists; no distractor is said in its evidence line; no
piece without a licence. Audio is self-hosted on the box as Opus with an AAC
fallback, served with range requests; video is embedded only through a player
whose API can seek, so segment replay works (the YouTube IFrame API can,
SRF's embed cannot).
What unblocks it. One native Zurich speaker and an afternoon: ten short scripted dialogues of about a minute each, written from the scenes, are enough to build and test the whole screen. Everything else in this section is software we can write.
The exercise track, in order
Practice is the half of this product that decides whether anybody comes back, and it is the half where guessing is least excusable: every decision below can be argued from the FACT list above, and where it cannot, it says so.
Built, and cited on /practice itself — the page explains its own design
with links, because the person reading it has just been told they got something
wrong and is entitled to know whether the thing telling them knows anything.
- Asked, never shown first (Yang 2021).
- Expanding intervals, 1/3/7/16/35 days, ending rather than growing (Kim & Webb 2022). No SM-2, no FSRS: eleven kept words cannot support a fitted curve, and §8 forbids that kind of false precision.
- A missed item returns three questions later, once (Rawson & Dunlosky 2011; Butler & Roediger 2008). The gap of three is ours. The schedule hears the FIRST answer only — a word got right a minute after being revealed has not been retrieved, and grading it again would inflate the very interval the spacing is for.
- No two item kinds in a row (Brunmair & Richter 2019, with its moderator stated rather than suppressed).
- Five item kinds, two of them objective. Anything needing a model to mark it is not an exercise type, because Zurich German has no settled orthography and marking a typed answer means deciding whether a near-miss counts.
Built since: the reference section became navigable, and practice became addressable. Four changes that are really one change.
Scope. /practice?topic=…, ?scene=…, ?group=…. Every reference surface
now opens a sitting about ITSELF — the grammar topic just read, the scene just
skimmed, the group of words on screen. It is a filter over existing items
rather than a generator, because ItemSource already recorded where every
question came from; the field built to make a wrong answer traceable turned
out to make a pool addressable. A topic scope unions the topic's own examples
with the real scene lines that turn on the same rule, so the situation packs
deepen the grammar section automatically.
Grammar as pages. /grammar/<topic>, indexed by BAND — blocks (the
sentence does not survive) and marks (it survives, you do not). That division
was in the page's lead from the first day and was carried entirely by the order
of a list; it is now a field, two headed sections, and a card per topic showing
its first contrast. The topic page adds what a section could not hold: practise
this now, where it actually comes up, and previous/next within the band.
Vocabulary as something you can find a word in. A filter over BOTH languages
(you meet the German word in your head first), jump links, a scoped sitting per
group, and — for the words that have one — the scenes where the word is said,
joined whole-word because si lives inside isch.
Two new exercise kinds, both objective, neither inventing language.
match is four words and four meanings; gaptext is a four-line passage from
a scene with three words lifted out and offered back. The word bank is what
makes a passage objectively markable in a variety with no settled spelling: the
learner chooses rather than spells, every option is a real form from the
passage, and the key is which hole each came out of. Both shuffle by ROTATION,
which is a derangement for free and keeps the board reproducible.
Refused, and it is a decision rather than a backlog item: a word-order exercise. Reconstructing a scrambled sentence is the obvious next shape and it cannot be marked honestly here — this variety tolerates more than one order, and an item that calls a valid alternative wrong would be §6's failure in a new place, aimed at the one person who cannot detect it.
Built: progress on more than one device, certificates, and teams.
Revised 2026-11-26: WITH AN ACCOUNT, PROGRESS FOLLOWS THE ACCOUNT. It was off
until switched on in the settings, so a person who made an account to have
their progress on two devices had an account that did not do that. Now the
sign-in and sign-up screens say in one line what is stored with an account,
and a browser that signs in after seeing it syncs; the personal page repeats
the line with one tap to keep everything on this device only (which deletes
that device's copy). A learner who was already signed in when the default
changed never saw the line and is asked once, not switched. Signed out,
nothing is ever sent (SyncSetting in lib/domain/progress/sync.ts).
With sync on,
each device keeps only what it observed and the server keeps each device's
record apart; pages show the sum (for the question schedule, the newest
answer per question), so nothing is counted twice
(lib/domain/progress/sync.ts). Switching off removes that device's copy; one
button deletes all of it. A certificate is issued by the SERVER from the synced
record, by the same rule the situation page shows (strengthOf, only at
"sure"), and its public page carries no name. In a team, each member decides
whether the organiser sees their standing per situation — never which lines or
answers (lib/domain/teams/overview.ts). Without an account, nothing about
what a person cannot understand leaves their browser; with one, it is kept
under that account and nowhere else, and one tap takes it back.
Built: a learner profile, and a personal page that answers three questions.
The profile is ONE model and almost none of it is stored: it is a view over
the stores that already held each answer (German level, weekly rhythm,
situations, difficulty, the warm-up's starting point, the reminder switch),
plus the one thing that had no home, the reason for learning
(lib/domain/profile/profile.ts; which scenes serve which reason is declared
in the situation packs). «Dein Profil einrichten» asks one question per
screen, every one skippable, and opens by itself once, after a newcomer's
first finished sitting, never before it. The personal page answers «Was mache
ich heute?», «Wo stehe ich?» (counts of the material: situations, words,
grammar topics, lessons, takes; never a figure about the person, §8) and
«Nutze ich Heidi gut?»: the last four weeks against the learner's OWN goal and
exactly one observation with one action, chosen by the ordered rule set in
lib/domain/profile/usage.ts. For that the streak keeps, per finished week of
the last four, a day count and the goal it had; still never a date.
Built: interests lead the listening. The profile asks one more question,
«Was interessiert dich?» (several answers, none required), and its nine
choices are names for the topics every row of the listening register already
carried (lib/listening/interests.ts; a test holds that every row answers to
an interest and every interest has rows that can be followed). The listening
page then opens with the rows that fit, each saying which choice it is there
for, and «Nutze ich Heidi gut?» names one of them when the thing to do is
listen. Rows whose lessons can ask about details come first (publisher
captions, or Standard German a recogniser reads faithfully; expectedScope
in lib/channels/policy.ts), at most one of them Standard German; a row that
supports only the question about the whole says so. The choice is made in the
browser: the page stays cached and the same for everyone. There is no
«Fussball»: the register has sport as a whole.
Built: deleting an account deletes the person. The account page has «delete my
account» (accountkit removes the login). Heidi's own tables are keyed by
actor_id with no foreign key to it, so until 2026-11-10 that left a person's
synced progress, reminder setting, language, conversations, group memberships,
follows, push subscriptions and certificates behind, attached to nobody.
lib/domain/account/erase.ts now removes them in one transaction, after the
deletion succeeded (a wrong password erases nothing); a group the person made
passes to its longest-standing member, and their messages in other people's
groups stay for the others, no longer attributed to anybody. ERASED lists
every table that holds a person, and erase.test.ts walks the schema and fails
when a table with a person column is missing from it, so a new feature cannot
forget.
Built: one reminder, opt-in, and quiet. Off until the learner turns it on in
the profile, never once this week has reached their own weekly goal, and
offered only with progress sync on, because the server can
read what is due only from a device that syncs. It is one email in the evening
(18:00 in the learner's own time zone, read from the browser when they switch
it on), and lib/mail/reminder-policy.ts errs toward silence: a verified
address only, never in the first day, at most every other day, never fewer than
five questions due, never when they have already practised that day, and after
three in a row that were not followed by practice, none until they come back
on their own. The copy is worded as a good moment to take, never as something
about to be lost (§3), and a test fails on the words that would say otherwise.
The mail holds a count, the streak only from two days, and one real line from
the pack that is due — never what the learner wrote or got wrong. Every one has
the reason it arrived, a footer unsubscribe and the one-click header (RFC 8058)
that Gmail and Yahoo require; the footer link opens a page with one button, so a
link scanner cannot unsubscribe anybody by looking. The layout is the fleet's
(@bitbaum/mail-kit, renderMail), the same one account mail now uses.
Sent hourly from /api/cron/reminders by the box timer.
Built: the system knows what you keep getting wrong. A learner model, in
the browser, beside the kept words and for the same reason HEIDI.md gives for
those: it keeps Heidi from holding a record of what a particular person cannot
understand. It reads ItemSource and keeps a miss rate per topic, scene, word
group and rule, and it does two things with it — reorders every sitting so the
weak half leads, and names the two or three areas worth going back to with a
link straight at them.
Three properties make it defensible rather than a score. The rate is SHRUNK BY
SAMPLE SIZE (rate × asked/(asked+3)) — the obvious smoothing let one wrong
answer out of one outrank a topic missed nine times in twenty, and a failing
test is how that was found. It hears the FIRST answer only, like the review
schedule, so nobody can talk their weakest topic out of the model by being
shown the answer and repeating it. And the ordering is BANDED rather than
continuous, so a bad area cannot own every sitting.
It shows no number anywhere: no percentage, no miss count, no level. §8's rule
is that this product measures how much of an unfamiliar Zurich speaker you
understand, and a miss rate rendered at a person is a score whatever it is
called. The diagnosis points at the MATERIAL — "these keep catching you out",
with the topic named and a session offered. Declared on /privacy and
deletable from /settings, along with the seen-history, which had been
undeclared since the exercises shipped.
Built: questions come back before they are forgotten. The model knows
which AREAS are weak and the seen-history knows what was asked lately;
neither knew TIME, so a question answered right in June never came back, and
kept words were the only thing on a schedule. Now every question has one
(lib/domain/practice/memory.ts, heidi.practice.memory.v2): the same
expanding steps as kept words (1, 3, 7, 16, 35 days, REVIEW_STEPS), a miss
back to the start, a right answer one step on, and at the last step it keeps
returning every five weeks rather than vanishing. A sitting is shared
(session.ts): about half its seats go to questions never asked while the
scope has any, the rest to what is DUE, and a review that finds no seat leads
the next sitting. A question answered and not due yet is resting and is not
asked; a used-up scope says so and offers the wider sitting. The level of new
questions follows the learner's setting (easier, fitting, harder;
difficulty.ts) and moves by itself on a run of right answers or repeated
misses, saying so with the way back. First answer only, like the
model; practice and the warm-up feed it, the test does not (it measures, and
reveals nothing until the end). The practice page says how many are due
today, and the end of a sitting how many come back tomorrow. Synced like the
rest of progress, newest answer per question winning. Next: «gemeistert»
that expires when its questions go overdue, and a page showing what is
solid, fading and due — both need the question-to-area map on the server.
Built: one module per exercise kind, and a registry. lib/domain/practice/ kinds/ — a file per kind, each declaring its id, its marking, whether the
SERVER can generate it, and how. Adding match had touched five places, three
of them invisible until something went wrong and one of them a bug shipped in
the same commit as the feature (the keyboard handler fell through and answered
a matching item correctly on a single Enter). A kind is now a file and a line
in registry.ts. The shared text operations — which word to blank, whether the
clue gives it away — live in kinds/text.ts so the second gapped kind could
not fork them.
The registry's contract test found a real defect on its first run: cloze ids
were cloze:<topic>:<word>, and two examples of one topic that blank to the
same word produced the SAME id. Ids key the seen-history, so answering one
marked the other asked and one of the two was never served again — invisible,
because both items exist and both are correct.
Built: enough material that the questions stop repeating. The complaint was
arithmetic, not scheduling: eight questions a sitting out of sixty-seven items
means meeting the same ones within the week, and no shuffle fixes that.
everyday is the second domain — the shop, the tram, the stairwell, the
telephone, the lunch table — and the vocabulary gained the short words no
correspondence rescues (grad, äbe, gäng, aalüte) plus paradigms for
si, gah and cho. Those three earn a table by the same standard ha set:
every form already appears in a sentence the packs publish, so the table is a
reorganisation rather than four new claims. gsi is in it because it carries
every past tense in a variety with no preterite.
Practice items went 67 → 195, scenes 6 → 14, lines 60 → 140, vocabulary 48 → 83 and grammar topics 8 → 11 — and the pool stopped being three quarters one kind. Article questions alone went 3 → 24, which is the cheapest exercise the pack can grow: gender is the error a German reader is least able to avoid, because it is carried by a word they never had to learn.
Three of the new topics are question-words, indefinite-article and
imperative, and each names something the packs had been teaching by example
without ever saying: wänn heard as German wenn turns a question into a
condition, the article es is identical to the pronoun es, and the polite
imperative ends in -ed rather than -en.
Built: the two kinds the material was asking for, and typing that is not marked.
Coverage was the problem, not variety. Measured: the pack's twenty-six
function words produced SIX questions between them, because they carry no
article and no paradigm, so the only generator that could see them was the
matching grid. They are the words /vocabulary argues buy the most
comprehension, and they were the least practised thing in the product.
The article drill asks only where German misleads. A noun carries its
German article too (bridgeArticle), and the question «which article?» is
generated only where the two genders differ: s Tram (die Strassenbahn), s
Billett, s Grosi, s Säckli, d Chilbi, d Glace (das Speiseeis), s Güetzi (der
Keks), s Rüebli (die Karotte), s Trottoir, de Anke (die Butter), de Härdöpfel,
d Stange, s Zvieri. Where they agree — s Ässe, das Essen — the answer needs
German and the mapping der→de, die→d, das→s, which the articles lesson teaches
once; 32 of the 45 nouns with an article are that, and a learner reported the
question as useless.
pick is a real pack sentence with one word cut out and four real words
offered. What makes it objective is the bridge printed underneath: several
options will produce a perfectly good Zurich sentence — that is what function
words are like — and exactly one of them makes the sentence mean the German.
The learner can check the verdict against the evidence rather than take it.
Its distractors are filtered by a rule worth stating: a candidate's own gloss
must not appear in the bridge. Without it the generator eventually offers
nüme ("nicht mehr") against a German line containing "nicht mehr" and marks a
defensible answer wrong, which is the single thing an objective item may never
do. A test asserts both halves — the answer's gloss present, every distractor's
absent.
Function-word questions went 6 → 32, and the pool to 221.
And the reveal button stopped being the only control. A learner could press it and read the answer without attempting one — the retrieval this page exists for, skipped in a keystroke. There is now an optional field to write the answer in first.
No verdict compares what they wrote to what the pack says. §6 is why: a
machine that judges typed dialect eventually tells somebody their spelling is
wrong when it is not, in a variety where they cannot argue back. What typing
adds is the COMMITMENT — the answer is out of your head and on the screen
before the real one appears — and the two are then shown one above the other
with no verdict between them. Underneath, compare.ts names two things and
nothing else: words of the pack's line that are MISSING, and words typed as a
DIFFERENT FORM («schlof» – «schlaft»: another vowel, no ending). Respellings
(«ä»/«e», «sch»/«sh», «ie»/«i», doubled letters, case, accents) fold away
first and are never named.
Every question can be asked about. Under each answer in practice and the warm-up, «Heidi fragen, warum» sends the question, the right answer and — when it differed — the learner's own, as their visible message in the dock, which opens over the session screen. The test has no per-question feedback, so it has none until its results.
What comes next lives in one place: the public roadmap, lib/config/roadmap.ts,
rendered at /roadmap. This section used to hold a second, numbered copy of
it, and that copy went stale twice without anybody noticing — its first item
had largely shipped (#117), and its refusal of "percentages and levels"
contradicted §3 while "10 of 10 lines" was already live. A list in prose drifts;
the roadmap is typed data that a test can hold. So this section keeps only the
REASONING behind the order:
- The situation is the spine. "I understand Swiss German at the doctor's" is the claim a learner wants to make and an employer wants to buy, so situations get deeper before anything gets wider — and the certificate, when it comes, is per situation, never "Swiss German, level B1".
- Individuals and organisations are one product. Care homes, hospitals recruiting from Germany, relocation firms and employers of people who moved here buy the same situations their people practise. Teams, workplace packs and per-situation certificates are the organisation side of features that exist for one person.
- Motivation without guilt. Streaks and weekly goals, framed as gain — §3.
- The productive direction, meaning → dialect, once a word has survived a few reviews: recognition first (§1), production when it has something to stand on (Bertsch 2007).
- Multi-talker listening is the best-evidenced method available (Lively 1993; Clopper & Pisoni 2004), and it is built on real dialect audio, never a Standard German voice reading dialect spelling (§7.2, §8).
- Wider, for everyone in Switzerland. Other dialects, and a detector that tells anybody where a sentence comes from, make Heidi worth opening for people who already speak Swiss German.
INTERNAL, NOT ON THE ROADMAP: content is machine-verified against Zurich forms (the gate, cross-model checks, the Idiotikon); a native speaker's read would strengthen it further. It is noted here and nowhere public.
Two loops explain Heidi better than any feature list:
Upload a real message → understand it → reply naturally → learn one thing from it → meet that thing again later.
Hear a real Zurich speaker → half-fail → get one cue → understand a different speaker better.
Say it out loud → see what the recording actually shows → write down what you said → find the one word that was not from here → say it to someone next week.
Note what the third loop does not contain: a mark out of ten. It ends in a room with other people, because that is where speaking a language happens and a score is what a product offers instead.
10. Privacy
Screenshots, chats and voice notes are among the most private things a person owns. Consent to operate the product and consent to contribute to a research corpus are separate, and the second is never assumed from the first. A user's conversations do not silently become a linguistic corpus.
This section used to be four sentences of intent written when there was nothing to be private about. There is now, so here is what actually happens.
Signed out, nothing you type reaches our database. The conversation is kept
in your own browser (heidi.chat.draft.v1). It is sent to a model to be
answered, and it is not stored on our side. No cookie mints an anonymous
identity for you: an id like that is a tracking id whatever it is called, and
it produces rows that nobody can ever prove are theirs in order to delete them.
Signed in, your conversations are stored, and only you can read them. Every route checks ownership before anything else, and a conversation that is not yours answers 404 rather than 403 — whether a given id names a real conversation is not a stranger's to learn.
Delete means delete. Deleting a conversation destroys its messages in the
same transaction. The conversation row itself remains as an empty tombstone,
holding nothing but its id and the fact that it is gone, so a deleted link
keeps answering a stable 404; the title, which was your words, goes with the
rest. A deleted_at that leaves the text sitting in the table would make this
paragraph a lie.
Pictures are answered from and then forgotten. An attachment is downscaled in your browser, sent to the model to be read, and never written to the database. What is stored is a number: how many there were.
Adopting a signed-out conversation is offered, not assumed. Sign in with a conversation open and Heidi asks whether to keep it. Silent adoption is what the big chat apps do and nobody would blink — but the first act of a new account should not be to quietly upload the transcript that was device-local a second ago.
A thumb under an answer is stored, and the night reads it. Every answer
carries chatkit's thumbs; a thumb down asks why in one tap. The row
(chat_feedback: conversation id, message id, verdict, reason, words) names no
person. Signed out it files under draft, since the thread itself never reaches
us. Each night Loki's reviewer reads GET /api/chat/review-export — bearer
CHAT_REVIEW_TOKEN, the one secret the whole fleet shares — and gets the saved
conversations of the last day: ids, turns, the gate's verdicts and the thumbs,
never an actor id, a name or an address. A model judges every answer against
Heidi's own prompt and files each gap as a finding in Loki's feedback inbox,
where the fix is built (lib/domain/chat-review/). Deleting a conversation
removes it from the export with everything else.
Your own model key is never stored by us. A key you bring stays in your browser, is forwarded on the request it is for, and is redacted out of every log line before anything is written.
Signed in, your site language is stored, and nothing else about how you
read. One row per account in preferences: the locale, written when you pick
a language (or sign in from a page that is not German), read when you sign in
on another device. Signed out, a language pick is remembered by this browser's
heidi_locale cookie and by nothing on our side.
The warm-up stays on your device. Which lines you understood and your
answer to the Swiss German offer are kept in this browser (heidi.warmup.v1)
to show the result again, and nowhere else.
Saved words stay on your device. They need no account, work signed out, and keep Heidi from holding a record of what a particular person cannot understand.
Your voice never reaches us at all, and where it reaches anyone it is
because you chose that take. A recorded take is decoded and measured in the
page that recorded it. What is KEPT is a handful of numbers and your own
write-up of what you said, in your browser, under heidi.takes.v1 — there is
no audio table and no upload endpoint that stores anything, in any mode.
On the dialect the audio is never sent. In both modes the take stays in the
page's memory as an object URL so the learner can hear it again
(take-playback.tsx), with the measured pauses drawn on the bar and a tap to
jump there; it is never stored, and it is revoked when the next take starts,
on reset and when the screen goes away. A take stops by itself after two
minutes, with a countdown for the last fifteen seconds
(lib/domain/speaking/recording.ts). The recorder asks the browser to switch
noise suppression and echo cancellation off, because both gate the quiet the
pause measurement reads, and says so in one line when the browser reports it
kept them on. Automatic gain stays on: measured on 2026-11-25, speech 40 dB
down reads -52.8 dBFS with gain off against the -45 dBFS floor and would be
refused as too quiet.
Not sending the dialect take is the default,
and it is enforced rather than remembered: useRecorder hands the recording
back only under retainAudio, which defaults to false and is fixed for the
take before the microphone opens, so there is no path from "recorded without
it" to "uploaded anyway". A test asserts both the default and the gate, because
the sentence above is one deleted ternary away from being false and neither the
UI nor a unit test would show it.
(Since 2026-11-28 there is a second, narrower way a recording leaves: under a
dialect line said aloud in a situation, «Hat mich eine Maschine verstanden?»
sends that one take once, on the learner's tap, and shows the Standard German
that came back AS what a machine understood — never as what was said, never
with a correction, never with a score. lib/domain/speaking/understood.ts.)
Practising the bridge is the one mode that sends the recording by itself, once, to be transcribed — and it exists because the transcript is worth something there and is worth nothing on the dialect (§7.4). It is a per-take choice with its consequence printed beside it, and the privacy line under the screen changes with the mode rather than describing the friendlier half of it.
This is the strongest version of the call image_count already made, and it is
not a flourish. A table of how somebody sounds when they are bad at a language
is worse than a table of the words they looked up, and this section opens by
naming voice notes among the most private things a person owns. The cheapest
way to honour that is to never hold one — there is then no breach to have, no
retention policy to write, and no paragraph here that could later turn out to
be untrue. The cost is stated rather than hidden: clear your browser data and
your recordings' history is gone, and it does not follow you to a second
device. That is the same deal saved words make, and it is the right way round.
The one thing that does leave the device is the sentence you typed, when you press the button asking for a suggestion — one request, answered and not stored, exactly like a signed-out chat.