Support mishearing-to-correction mappings in custom vocabulary (closes #125)#269
Open
swimmer-303 wants to merge 2 commits into
Open
Support mishearing-to-correction mappings in custom vocabulary (closes #125)#269swimmer-303 wants to merge 2 commits into
swimmer-303 wants to merge 2 commits into
Conversation
Vocabulary entries can now map heard forms to the intended term with
an arrow ("cloud code -> Claude Code"), with "|" separating multiple
heard forms. Pairs are passed to the post-processing model as an
explicit corrections block in both dictation and Edit Mode prompts;
plain entries behave exactly as before.
Closes zachlatta#125
(cherry picked from commit cc4659e)
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughCustom vocabulary now supports explicit heard-to-corrected mappings, multiple heard variants, and malformed-entry fallback handling. The post-processing prompt, settings guidance, README, and changelog document and use the new syntax. ChangesCustom vocabulary mappings
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant SettingsView
participant PostProcessingService
participant LanguageModel
SettingsView->>PostProcessingService: custom vocabulary entries
PostProcessingService->>PostProcessingService: parse heard-to-corrected mappings
PostProcessingService->>LanguageModel: prioritized terms and known mishearings prompt
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out from #254.
Vocabulary entries can map heard forms to the intended term with an arrow —
cloud code -> Claude Code— and multiple heard forms can share one correction:cloud code | clod code -> Claude Code. Pairs are passed to the post-processing model as an explicit corrections block (with a guard against over-applying); plain entries behave exactly as before. Parser verified against plain entries, single/multi-variant mappings, mixed comma-separated lines,=>, and malformed input. Settings hint text and README document the syntax.Closes #125
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
cloud code -> Claude Code.|.Documentation