mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-05 11:28:51 +01:00
* feat(listening): where you can actually hear Zurich German, as a register The recordings §9 waits on do not exist yet, and the largest source of dialect exposure in the world does: the media the Swiss already make for themselves. Pointing at it needs no corpus and no licence. What makes this more than a list of Swiss channels is the variety label on every row. Switzerland is diglossic and Swiss media splits along that seam in a way nobody tells a learner — the evening bulletin is read in Standard German and the magazine after it is in dialect. Someone sent to 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. That is the same lemons problem §6 built the variety gate for, one level up: the learner cannot audit the label, because not being able to tell the two apart by ear is why they are here. So `basis` is required on every row and `listened` is claimed nowhere, because nobody here has sat down with these forty-odd programmes and written down what they heard. A test fails the moment a row claims it, so the day somebody does that afternoon's work, the page copy has to change with it rather than quietly keeping the old sentence. No difficulty number anywhere: "3 out of 5 chillis" is the false precision §8 forbids. What is written down is observable — how many voices at once, read or spontaneous, whether publisher subtitles exist — and demand() in flow.ts derives an ordering from it, so an argument about the ordering is an argument about four weights in one place. Films and series link to a page ABOUT them rather than a play button: streaming rights to Swiss films move every few months, and a register that rots is worse than one that admits what it can promise. Noticeable as a group, and worth a learner knowing: the famous Swiss films are mostly BERNESE, so working through them gives a Zurich learner an ear for the wrong dialect. Every url was fetched and its page title checked against the name. The sweep has three verdicts, not two — a Cloudflare challenge is not a dead link, and only GONE fails the run. It caught two things worth keeping: youtube.com/@srf3 answers 200 and is called SRF Unterhaltung, and its own normaliser called TeleZüri a mismatch because it decomposed the umlaut to a bare `u` where the publisher writes `ue`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat(voice): the spoken channel, and the variety gate that has to come with it Speaking and listening are the half of this language nobody can practise alone, and the half the product has never had. This is the layer under it. THE GATE APPLIES TO SOUND, and that is the whole design. §6 built a deterministic check over generated TEXT because a model asked for Zurich German returns Bernese fluently and the learner cannot tell. Every word of that survives being read aloud and gets worse, because speech is gone the moment it is said. And the failure is already on our own record: §7 says most synthesis sold as "Swiss German" is Swiss STANDARD German, the written language read aloud in a Swiss accent. `de-CH` on a voice is the accent, not the dialect. So `lib/voice/variety.ts` has no code path that returns "dialect" — not an omission to be filled in by widening a condition later, but the claim it exists to refuse. A test feeds it voices named "Züritüütsch" and "Schweizerdeutsch Mundart" and asserts it is not fooled. The consequence is the point: every control that speaks can say what it is speaking, and does. CORRECTION IS A SETTING WITH THREE RULES ABOVE IT. Spelling is never corrected, because Zurich German has no standard orthography and enforcing one would be inventing an authority. Pronunciation is never scored, and that is structural rather than principled — this module takes no audio, no confidence and no alignment, so a number would have to be invented. And the one that is easy to get wrong and silently ruins the feature: a transcript's forms belong to the machine, not the speaker. Swiss German recognition writes Standard German whatever was said, so running the gate over a transcript flags the recogniser and bills it to the learner — they would be corrected, in detail, for saying something correctly. So speech is never corrected for its variety at any level, and the three silences (you turned this off / this cannot be judged / you made no mistakes) are distinguishable rather than collapsed into a blank space. That leaves a real gap and the copy names it in seven languages: Heidi cannot tell you whether your accent is right. Nothing can, reliably. What she can do is understand you and answer. Also /listen, which renders the register — the diglossia warning above the list, because a reader who scrolls to the links and picks the name they recognise picks the Tagesschau. The gsw copy passes Heidi's own dialect gate, and the German copy had to learn to name the sharp S without typing it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat(voice): Heidi speaks, and says what she is speaking with A speak button beside every copy button — on the dialect line and on each suggestion, which are the lines a learner has to produce and the ones "what does this sound like" was unanswerable for. The claim rides along in the flow rather than in a tooltip: phones have no hover, screen readers announce it last, and the whole point is that the learner cannot hear the difference between a Swiss Standard German voice and the dialect they came for. On a dialect line the caveat is stronger, and `dialect` is a prop rather than an inference — a Swiss Standard German suggestion read by a Standard German voice needs no warning, and attaching one anyway would train people to ignore it on the line that does need it. Auto-speak is seeded on mount. The obvious version speaks whenever the last message is Heidi's, and then opening a saved conversation reads the last thing she said three days ago at somebody who came back to look one word up. Only a message that ARRIVES is spoken, and only the prose — never the dialect line, which is something to ask for deliberately. Settings carries both the voice and the correction level, because both are decisions about how you want to be treated rather than about this message. What the device can actually speak is shown from the same function the audio will come from, so the page cannot promise a voice the speaker does not have. And the limit is stated beside the setting rather than discovered: somebody turning corrections up is exactly the person about to assume the highest setting also judges their accent. The React Compiler rejected the ref-assignment-during-render idiom, which was right: a render that gets thrown away would still have changed it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * docs: the spoken channel, in the definition, the register and the record HEIDI.md §1 said what Heidi is without mentioning that the language is one people HEAR. It has no standard orthography, the lunch table that prompted this product is audio, and a learner who can only read Zurich German has solved a version of the problem that does not occur. So the spoken channel is named as the subject, arrived at late, rather than as a feature tier — with the one-sentence honest summary attached: Heidi can speak to you and understand you speaking; she cannot tell you whether you sound right, and neither can anything else. §6 gains the sound gate, which is stricter than the text one because written text can be stared at and looked up while speech is gone the moment it is said. §8 gains five new refusals, each of which was a plausible sentence somebody could have shipped this week: that Heidi speaks Zurich German, that she corrects pronunciation, that a transcript's forms are the speaker's, that a machine reading dialect spelling is a model to imitate, and that a Swiss channel is a dialect channel. §9 records both builds and gives "next" three concrete steps in cost order. The cheapest is the best: listening to the register and flipping `basis` from `format` to `listened` needs no corpus, no licence and no model, and turns forty careful inferences into forty facts. The site's own roadmap said the product handles text, in seven languages, which stopped being true today. The vision's closing line now carries the spoken half too — every language this method could travel to is heard far more often than it is written, and for every one of them there is media nobody has sorted into dialect and standard. And a CHANGELOG, which did not exist. HEIDI.md is the present tense and must never contradict itself; a changelog is the past tense, which is the only place that can say a thing used to be otherwise. Derived from the merge history rather than written from memory, so the entries about dictation failing five separate times in September are the record rather than a confession. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * docs(voice): name the seam between the two correction surfaces #69 landed a speaking take while this branch was open, and it decides what may be corrected too. The two are not a duplication and collapsing them would break one of them, so both files now say why. `feedback.ts` judges a spoken take the learner WROTE DOWN and keeps only `foreign` findings, because an `unattested` finding is orthographic and there is no way to say a `ß`. `correction.ts` judges typed text, where orthography is exactly what the learner produced and `unattested` is the most certain judgement available. Same gate, two surfaces, two defensible mappings. The third input is named in a comment rather than added as a value: speech the learner transcribes themselves is neither of this module's cases, and routing it to `spoken` would silence the one surface where a spoken take can honestly be commented on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>