45 words, one map — click around and feel the geometry
Every dot below is a word placed so that distance = difference in meaning. Animals huddle top-left, feelings top-right, money bottom-right. Click any word (or pick from the menu) and the map draws lines to its five nearest neighbors, with a live similarity score for each. Then click bank and see something strange.
Real embeddings live in 300–3,000 dimensions and are learned from billions of sentences. This map is a 2-D, hand-built miniature — but nearness-as-meaning works the same way.
Type a word, watch it land — or crash
An embedding model is a function: word in, coordinates out. Type a word this little model knows and it drops onto the map right next to its relatives. Type a word it has never seen and it still returns coordinates — it has no choice — but they mean nothing. Try “monarch”, then try “zorblax”.
This toy knows the 45 map words plus ~30 relatives via a hand-built lookup. Real models learn the lookup from data — but they too output something for junk input.
Word algebra: king − man + woman ≈ queen
Because meanings are vectors, you can do arithmetic on them. Subtracting man from king isolates a direction that means roughly “royalty”; add woman and you land on queen. Watch the arrows do it — then build a nonsense equation and watch the same arithmetic produce confident garbage.
The gold arrow is the difference A − B; the same arrow is then re-drawn starting at C. The star is the computed point; the circled word is whatever happens to be nearest.
The similarity dial — where do you draw the line?
Every real system that uses embeddings has a threshold: “count two things as related if similarity ≥ X”. Drag the dial. Strict → clean synonym pairs. Loose → the map floods with edges and cat becomes “related” to money. Both edge counts below are computed live from all 990 word pairs.
The polysemy trap — one word, two meanings, one point
“Bank” means a river's edge and a place for money — but a classic word embedding must assign it exactly one point. So it gets parked in no-man's-land between both neighborhoods. Put “bank” into each sentence below and watch the point refuse to move; then check an unambiguous word for contrast.