Repository navigation
fix: a rendering learnt from ordinary words no longer rewrites every use of them - #388
Conversation
check-clause-places.sh gets two cases. "resend" learnt under Resend must not rewrite "Can you resend me the invite?". "upstash" learnt under Upstash must still write Upstash. The first fails on the base: the rule writes "Resend" and no gate sees the place. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
…e of it
A correction of "resend" to Resend wrote `heard: resend`, and that became
an exact rule. Every later "resend" turned into the product, and no gate
saw the place: ruleParts counts the term and the rendering at the same
span and gives up.
VocabularyPass.onlyCases names the case: only the letter case differs and
a word list knows the word. Such a rendering is no longer a rule.
caseParts gathers each place where the term stands in another case as a
`.sound` part, so the slot check and the clause decider settle it. A
non-word ("vercel", "upstash") stays a rule.
Places are gathered before any correction too. A cold term never writes,
so the place is offered or left.
CorrectionRecording.term(named:) no longer reads "resend" as Resend. So
keeping "resend" on the pill, or correcting Resend back to "resend",
records a counter instead of a use or nothing.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2
Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
Automatic reviews are disabled for this repository. |
|
@coderabbitai review |
|
Action performed
|
…ot a rule Answers four CodeRabbit comments on #388. - `heard: Resend` under `Resend` was still a case-insensitive rule, so every "resend" became the product. `onlyCases` now holds when the spellings differ at most in case. `term(named:)` matches an exact spelling first. - `--correction Bill "bill's"` created a person `bill's`. The possessive is now stripped before the case-only test, so it is a counter. - Case places are gathered after the sound pass, so "stack" for `Stack` no longer takes "better stack" from `BetterStack`. - Longer terms gather first, so "stack overflow" is `Stack Overflow`, not `Stack`. check-clause-places: 18/18. On 750deb0 the new and changed cases fail (12/18). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
@coderabbitai review |
Action not completed
|
A correction can save a rendering of known words: `heard: quand on` under Qonto, `we send` under Resend, `Mr` under Mistral. Each was an exact rule. With the parser, the clause decider read the place, but a revert put the rendering back, so "Quand on" became "quand on" and "honor" became "Honor". Without the parser, the rule wrote every time: "Je viendrai Qonto aura fini." Now any rendering whose every word a word list knows is not a rule. `VocabularyPass.wordParts` (was `caseParts`) gathers its places as sound places, so the slot and the clause decider read them. A rendering with an unknown word (`Conto`, `N'gozy`) and a pattern in slashes stay rules. Cost: without the parser, "post hog" and "PG vector" are left as heard. With the parser they are offered on a cold term and written on a warm one, as before. Test fixtures that used "super base" or "Versailles" as a vehicle for other features now use "super baze" and "Vursel", which are still rules. Two `floor: off` checks now expect `cloud` to be no rule. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
@coderabbitai review |
Action performed
|
check-replacements runs with no parser, so "super base" and "Mick" are now left as heard. The case for "super base" records that. The composed case uses "super baze", which is still a rule. check-learn uses `clowd` for the old rendering so both renderings still count as rules. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
Answers three CodeRabbit comments on 9e3d6d0. - The near-miss pass reads every rendering again (`Config.renderingRules`), so with the sound pass off "Praise's" still reaches `heard: Praises`. - A rendering with a token that has no letter (`404`) is not ordinary, so it stays a rule. - A word place proposes the term inflected like the span, so `heard: bill's` writes "Bill's", not "Bill". Each has a check case that fails on 824ca7a. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
@coderabbitai review |
Action not completed
|
|
@coderabbitai review |
Action not completed
|
|
@coderabbitai review |
Action not completed
|
From the local CodeRabbit review of the whole PR. `wordParts` took every rendering, so a `lang: fr` rendering such as `we send` opened a place in an English dictation. It now keeps the renderings of the dictation language, with the same fallback as `Config.vocabularySounds`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
Local CodeRabbit review of the whole PR ( Run 1, on 0fec463: 4 findings.
Run 2, on f014423: 0 findings. Checks on f014423: |
- pipelines.md: the heading said two fixed passes over a table of three. It is now "The fixed passes", and the links to it follow. - configuration.md: names the tree cutter as the third fixed pass. - cli.md: a one-shot run waits up to 2 s for a cached parser, so the clause decider runs without --warm. --warm reads the parser for a vocabulary step only when its clause decider can run. - verify-parrotflow: since #388 "Versailles" is an ordinary word, so it is a place, not a rule. The example now expects changes = "". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
A rendering a correction learnt from ordinary words no longer becomes a blind rule. Before, correcting "resend" to
Resendonce wroteheard: resend, and every later "resend" was the product. The same held forheard: quand onunderQonto,we sendunderResend,MrunderMistral. Now a rendering whose every word a word list knows is not a rule. Each place it stands goes through the slot check and the clause decider, like a sound place. A rendering with an unknown word (Conto,vercel,N'gozy) or a pattern in slashes is still a rule. No setting. ReviewVocabularyPass.ordinary,VocabularyPass.wordPartsandCorrectionRecording.term(named:)first.heard: quand on, no parserheard: HonorunderHono, with the parserWhy it happened: the rule fires before any gate
Config.vocabularyRulesturns everyheard:rendering into an exact rule. With the parser, the clause decider then reads the rule's place. But when it does not write, the revert puts back the rendering, not what was heard: "Quand on" comes back as "quand on", "honor" as "Honor". Without the parser, the decider declines and an open rule place keeps what the rule wrote.A case-only rendering was worse.
SoundGroup.openingsskips a rendering equal to the term's own spelling, soresendunderResendwas a rule.VocabularyPass.rulePartsthen counts the term and the rendering at the same span, finds two marks for one word, and gives up. So no place reached any gate.Before any correction, the other gatherers skip a word that is already the term (
fuzzyParts, andphonemePartsthroughspelled), so "with resend" had no place at all.The change: one predicate, one gatherer, one lookup
VocabularyPass.ordinary: every word is in a word list (Vocabulary.unseenWord, the same lists as the vocabulary gate, so no language branch). A pattern in slashes, or a token with no letter (404), is never ordinary.Config.vocabularyRulesdrops an ordinary rendering. The near-miss pass still reads every rendering (Config.renderingRules), so "Praise's" reachesheard: Praiseswith the sound pass off.VocabularyPass.wordPartsgathers every place an ordinary rendering stands, and every place the term's own spelling stands in another case when that spelling is ordinary. Each is a.soundpart proposing the term inflected like the span (bill'sreadsBill's), sosettleasks the word lists and the slot, and the clause decider reads the rest. It runs after the sound pass, and longer forms go first, soBetterStackkeeps "better stack" andStack Overflowkeeps "stack overflow" fromStack.lang:, with the same fallback as the sound pass), so a Frenchwe sendopens no place in English.CorrectionRecording.term(named:)no longer reads "resend" asResend(VocabularyPass.onlyCases). Keeping "resend" on the pill now records a counter. It recorded a use before, and the next "drizzle" was written. CorrectingResendback to "resend" now records a counter too. Before, it was read as a capital fix and recorded nothing.Billcorrected to "bill's" is a counter as well. Before, it created a personbill's.floor: offkeeps its meaning: never matched by sound. Its ordinary renderings are places, not rules, like any other term's.The cost: no parser, no split-term write
Without the parser, the clause decider cannot run. A rendering of known words is then left as heard, including the right ones: "post hog" stays "post hog". Before, the rule wrote it, and also wrote "Je viendrai Qonto aura fini.", "Resend the invoices monthly." and "Mistral Smith will call you.".
Probe on 9 sentences, cold and warm (4
--foruses), with and without the parser, before (fcdba97) and after (3a50af4):Cold places: offered, because a cold term never writes
Measured on the Kokoro try-out at 750deb0, both ways on the same build:
The 165 bench has no case-only span, so it cannot weigh this either way.
Verification: checks, probes, and what was measured on which commit
check-clause-places20/20,check-vocabulary-config64/64,check-selector21/21,check-sound-group62/62,check-serve32/32,check-pipeline139/139,check-replacements23/23,check-learn45/45,check-possessive35/35, on f014423. The other text-level CI scripts pass locally too.cloudunder afloor: offClaudecounts as a rule. On 824ca7a, the 3 cases added for the second review fail (near miss with the sound pass off,404,bill's).check-pipelinecases used "super base" or "Versailles" as a rule to test something else (vars, context, input, rule attribution). They now use "super baze" and "Vursel", which are still rules. 4check-vocabulary-configloading fixtures moved fromVersailles/PrissytoVursel/Prissiefor the same reason. Twofloor: offcases now expectcloudto be no rule.check-learnusesclowdfor the same reason.check-replacementsruns with no parser, so "It runs on super base now" and "Mick" are now left as heard; the file records it, and the composed dotted-path case uses "super baze".fuzzyPartsreads the rules, so an ordinary rendering no longer has near misses. "She deserves Praise's work" still opens a place underheard: Praises: the sound pass finds it.--serve, chrono plus 20 random orders, on 750deb0: identical before and after, 0 of 3465 decisions differ. Not re-run on the later commits: the harness was lost in a reboot. The bench has no ordinary-word rendering with a case-only span, but it may hold other ordinary renderings, so this number does not cover 3a50af4.floor: offdocs still called its renderings exact rules), fixed in 9e3d6d0, then 0. The remote review was rate limited, so the local review of the whole PR counts: 4 findings on 0fec463 (2 fixed in f014423, 2 dismissed, see the PR comment), then 0 on f014423.🤖 Generated with Claude Code
https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2