A word embedding is a list of numbers — a vector — that a machine learning model assigns to a word so that words used in similar contexts end up close together in space. Real systems like word2vec or GloVe learn vectors with hundreds of dimensions from billions of words of text; this simulation uses a small, hand-placed 3D space of 34 words so the geometry stays visible and explorable.
king − man + woman ≈ queen vector arithmetic and highlights the nearest resulting word.This "vector arithmetic" property, popularized by the 2013 word2vec paper (Mikolov et al.), was one of the first striking pieces of evidence that neural networks could learn abstract relationships — like gender or capital-of — as consistent directions in space, not just memorized associations.
Thirty-four words rendered as glowing points in a 3D "meaning space," clustered by category, connected by cosine-similarity lines, and combined with real vector arithmetic to reproduce the famous king − man + woman ≈ queen analogy.
Word embeddings place semantically related words near each other in vector space. This scene shows that geometry directly: same-category words cluster, cosine similarity ranks nearest neighbors, and subtracting/adding word vectors performs meaningful analogical reasoning.
Pick a category to filter the space, choose a query word to see its nearest neighbors, drag the training slider from a random untrained scatter to the organized trained layout, and run the king − man + woman analogy to watch vector arithmetic land near "queen."
Word2vec's 2013 discovery that analogies work as vector arithmetic was one of the first hints that neural embeddings capture structured, human-interpretable relationships — a property that modern large language models still build on.