The Tri-Gram Problem
«A text is never only a sequence. It is a force field.
Words pull on other words through repetition, proximity, and habit, tracing patterns that feel half-discovered, half-determined. This piece visualizes those relationships as an orbital system: a small cosmos where fragments of language gather, drift, recur, and sometimes stabilize into constellations.
From the input, it extracts n-grams—recurring clusters of words—and renders them as orbits: loops of probability, the gravity of what we keep saying together.
N-grams are the first attraction force of language—and the quiet foundation beneath the way machines learn to speak.
Like the three-body problem, even a simple system can become unstable. A single word changed can redraw the entire sky.
Enter your own text
Controls:
- Click and drag to rotate the camera.
- Scroll to zoom in and out.
- Right-click to pan the camera.
- Space bar to pause the animation.
- Keys 1-0 to center each celestial body.
- Up and down keys to speed up / down.
Current speed factor: 1x - Press O to toggle orbit paths.
- Enter your own text