Repository navigation
Add vocabuilder extension - #25853
Conversation
- Add .claude/ to .gitignore - Prepare extension for Raycast Store submission - Add custom extension icon (open book with A/Я translation motif) - Improve translate UX: clipboard suggestion list item + 1.5s debounce - Add Flashcards command with SM-2 spaced repetition - Initial commit — VocaBuilder Raycast extension
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
- install prettier - chore: prep Raycast publish and prune internal exports - Implement SM-2 flashcard progress update - refactor: replace decorative section comments with jsdoc - Translate immediately on Enter - Add Raycast changelog for store validation - chore: standardize project on npm - Harden input validation and storage corruption handling - Harden clipboard suggestion handling - Harden Gemini integration and markdown rendering
Greptile SummaryAdds the VocaBuilder extension: a vocabulary-building tool with Translate, Translation History, and Flashcards commands backed by Gemini and local storage.
Confidence Score: 4/5Mostly safe to merge, but the SM-2 interval inversion in the core flashcard feature should be fixed first. One P1 logic bug in the flashcard spaced-repetition algorithm (first interval is 6 days instead of 1, second step skipped entirely) means the flagship review feature won't behave as documented. All other findings are P2 style nits. extensions/vocabuilder/src/flashcards.tsx — SM-2 updateProgress interval logic Important Files Changed
Prompt To Fix All With AIThis is a comment left during a code review.
Path: extensions/vocabuilder/src/flashcards.tsx
Line: 26
Comment:
**SM-2 first-interval logic always resolves to 6**
After incrementing `repetitions = prevRepetitions + 1`, the guard `repetitions < 2` is only true when `repetitions === 1` (i.e. the card's very first correct answer). The ternary `repetitions === 1 ? 6 : 1` therefore always evaluates to `6` — the `1` branch is dead code. Per the SM-2 spec the first-repetition interval should be **1 day** and the second **6 days**, but the current code gives **6 days** on the first correct answer and skips the hardcoded second step entirely, causing later intervals (`Math.round(6 * 2.5) = 15`) to diverge from the algorithm the PR advertises.
```suggestion
interval = repetitions === 1 ? 1 : repetitions === 2 ? 6 : Math.round(prevInterval * prevEaseFactor);
```
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: extensions/vocabuilder/src/translate.tsx
Line: 438
Comment:
**Prefer errorCode over message substring for action guard**
`error.includes("API key")` ties the conditional to the human-readable message string. `errorCode` is already tracked in state and is the stable identifier here.
```suggestion
{errorCode === "INVALID_API_KEY" && (
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (2): Last reviewed commit: "Update vocabuilder extension" | Re-trigger Greptile |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi @lavrovpy 👋
I updated the code a bit. Can you make sure I didn't break anything while doing that?
This is English-to-Ukrainian only — pretty niche - could it make sense to expand at some point?
- Fix unused-var lint errors and apply formatter - Add Russian and Belarusian to supported languages - Merge pull request raycast#5 from lavrovpy/feature/colored-pos-chips - Add color-coded part-of-speech chips - Improve flashcard rating UX: reorder actions and simplify labels - Update CHANGELOG with recent features and add publishing docs to AGENTS.md - Merge maintainer contributions (eslint-config, prettierrc, type deps) - Pull contributions - Merge pull request raycast#4 from lavrovpy/add-unit-tests - Add unit tests with Vitest for src/lib/ business logic - Merge pull request raycast#3 from lavrovpy/text-translation-support - Cancel in-flight requests on search text change - Show translation before original in text detail panel - Show detail panel for text translation results - Fix stale result blocking text translation flow - Rename "Translate Word" command to "Translate" - Add long text and sentence translation support - Update README with typo correction feature - Add typo correction support to translation flow - Merge pull request raycast#1 from lavrovpy/multiple-languages-support - Fix Rules of Hooks violation and TS narrowing in all commands - Add graceful error handling for invalid language configuration - Validate source ≠ target language and remove unused nativeName - Remove legacy en→uk storage migration code - Merge branch \'main\' into multiple-languages-support - Merge pull request raycast#2 from lavrovpy/add-claude-github-actions-1772448681462 - "Claude Code Review workflow" - "Claude PR Assistant workflow" - Add configurable source/target language support
|
Hi @pernielsentikaer, I added support for 15 more languages, automatic typo correction and longer texts support. Could you take another look at the extension? |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi 👋
I just checked our store and found quite a few similar extensions that I hadn't noticed before. It might make more sense to check them out; maybe they already cover what you need?
- Extension: Lingorep • What it does: Translate + save + spaced repetition • Overlap: Very high — same core concept (translate, save, review with SRS)
- Extension: Word4you • What it does: AI-powered word learning/collecting • Overlap: High — AI translation + word saving
- Extension: Anki • What it does: Anki flashcard integration • Overlap: Medium — flashcards but requires the external Anki app
- Extension: Mochi • What it does: Create Mochi flashcards • Overlap: Low — just card creation, different service
Lingorep is the closest match — it literally "translates, saves, and repeats translations to increase your vocabulary" with spaced repetition. VocaBuilder adds Gemini-powered translation (compared to whatever Lingorep uses), typo correction, part-of-speech tagging, example sentences, text/sentence translation, and configurable language pairs. But the core value proposition is identical.
Could you please check them out? If anything is missing, it would be better to enhance it. I'm sorry for not spotting them at first.
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
- Update README for current extension behavior (raycast#13) - Improve flashcard finish-screen primary action (raycast#12) - Handle offline errors with user-friendly feedback (raycast#11) - Fix sense picker layout truncation (raycast#10)
|
Hi @pernielsentikaer, thanks for your feedback! I reviewed each extension you listed. Lingorep is the closest match on paper, so compared it with my extension. Lingorep is a SaaS client, not a standalone extension. It translates via Google Translate API, requires OAuth to save anything, stores words on their cloud, and redirects to lingorep.com/learn for spaced repetition review. The free tier caps at 150 saved words before requiring a paid subscription. The Raycast extension itself exposes a single command - translate and save. VocaBuilder is local-first and self-contained extension that doesn't require account creation and doesn't have a word cap. Translation, history, and flashcard review all happen inside Raycast. The user brings their own Gemini API key, and data stays in LocalStorage. The feature gap is significant:
Since your last review, I've added multi-sense word support (#7), language toggling (#6) and Anki/Quizlet export (#9). The extensions target different users. Lingorep is for people who want cloud sync and a web-based review loop. VocaBuilder is for users who want everything local, inside Raycast, with richer linguistic output from Gemini. |
| easeFactor = Math.max(1.3, prevEaseFactor - 0.2); | ||
| } else { | ||
| repetitions = prevRepetitions + 1; | ||
| interval = repetitions < 2 ? (repetitions === 1 ? 6 : 1) : Math.round(prevInterval * prevEaseFactor); |
There was a problem hiding this comment.
SM-2 first-interval logic always resolves to 6
After incrementing repetitions = prevRepetitions + 1, the guard repetitions < 2 is only true when repetitions === 1 (i.e. the card's very first correct answer). The ternary repetitions === 1 ? 6 : 1 therefore always evaluates to 6 — the 1 branch is dead code. Per the SM-2 spec the first-repetition interval should be 1 day and the second 6 days, but the current code gives 6 days on the first correct answer and skips the hardcoded second step entirely, causing later intervals (Math.round(6 * 2.5) = 15) to diverge from the algorithm the PR advertises.
| interval = repetitions < 2 ? (repetitions === 1 ? 6 : 1) : Math.round(prevInterval * prevEaseFactor); | |
| interval = repetitions === 1 ? 1 : repetitions === 2 ? 6 : Math.round(prevInterval * prevEaseFactor); |
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/vocabuilder/src/flashcards.tsx
Line: 26
Comment:
**SM-2 first-interval logic always resolves to 6**
After incrementing `repetitions = prevRepetitions + 1`, the guard `repetitions < 2` is only true when `repetitions === 1` (i.e. the card's very first correct answer). The ternary `repetitions === 1 ? 6 : 1` therefore always evaluates to `6` — the `1` branch is dead code. Per the SM-2 spec the first-repetition interval should be **1 day** and the second **6 days**, but the current code gives **6 days** on the first correct answer and skips the hardcoded second step entirely, causing later intervals (`Math.round(6 * 2.5) = 15`) to diverge from the algorithm the PR advertises.
```suggestion
interval = repetitions === 1 ? 1 : repetitions === 2 ? 6 : Math.round(prevInterval * prevEaseFactor);
```
How can I resolve this? If you propose a fix, please make it concise.- Add word pronunciation via Gemini TTS (raycast#17) - Add husky pre-commit hook for linting (raycast#16) - Fix primary action on error screen (raycast#15)
|
Also, I've added TTS pronunciation powered by Gemini 2.5, user now can press Cmd+O to hear the correct pronunciation of any word |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Adds a new Raycast extension: VocaBuilder.
VocaBuilder helps users build vocabulary across 17 languages with translation and review workflows powered by Gemini.
Commands
Features
Quality & hardening
Screenshots