Arith: lead with the answer + surprise me - #19
Closed
scheuclu wants to merge 1 commit into
Closed
Conversation
The arithmetic page showed a flat ranked list; the actual analogy answer
was buried at position 1. Now it reads like one.
- Big animated "≈ {answer}" reveal (the top hit, shimmer, with its cosine),
so "king − man + woman ≈ queen" lands immediately. Click it to chain it
into the equation. Remaining hits become a quieter "others nearby" list
(same similarity bars).
- "✦ surprise me" shuffles through a curated set of analogies, filtered at
runtime to ones whose terms are all in the corpus (never a dead shuffle).
Independent of the word-dossier stack — touches only app/arith/page.tsx,
mergeable on its own.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
scheuclu
commented
Jun 6, 2026
Comment on lines
+40
to
+52
| const SURPRISES: Term[][] = [ | ||
| [{ sign: 1, word: "king" }, { sign: -1, word: "man" }, { sign: 1, word: "woman" }], | ||
| [{ sign: 1, word: "paris" }, { sign: -1, word: "france" }, { sign: 1, word: "germany" }], | ||
| [{ sign: 1, word: "paris" }, { sign: -1, word: "france" }, { sign: 1, word: "italy" }], | ||
| [{ sign: 1, word: "paris" }, { sign: -1, word: "france" }, { sign: 1, word: "japan" }], | ||
| [{ sign: 1, word: "better" }, { sign: -1, word: "good" }, { sign: 1, word: "bad" }], | ||
| [{ sign: 1, word: "bigger" }, { sign: -1, word: "big" }, { sign: 1, word: "small" }], | ||
| [{ sign: 1, word: "walking" }, { sign: -1, word: "walk" }, { sign: 1, word: "swim" }], | ||
| [{ sign: 1, word: "queen" }, { sign: -1, word: "woman" }, { sign: 1, word: "man" }], | ||
| [{ sign: 1, word: "london" }, { sign: -1, word: "england" }, { sign: 1, word: "spain" }], | ||
| [{ sign: 1, word: "summer" }, { sign: -1, word: "hot" }, { sign: 1, word: "cold" }], | ||
| [{ sign: 1, word: "doctor" }, { sign: -1, word: "hospital" }, { sign: 1, word: "school" }], | ||
| [{ sign: 1, word: "coffee" }, { sign: -1, word: "morning" }, { sign: 1, word: "night" }], |
Owner
Author
There was a problem hiding this comment.
These should have at least 4 times as much, including some surprising ones...
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.
Iteration 5 of the continuous-improvement loop. Independent off
main— touches onlyapp/arith/page.tsx, so it's mergeable on its own (not part of the word-dossier stack).What
/arithshowed a flat ranked list; the actual analogy answer was buried at #1. Now it reads like an answer.king − man + woman ≈ queenlands immediately. Click it to chain it into the equation. The remaining hits become a quieter "others nearby" list (same similarity bars).Verified
next buildclean.king − man + womanexample renders≈ queen(princess / prince / goddess / mother as others nearby).🤖 Generated with Claude Code