Robin Sloan, novelist, media inventor, olive oil entrepreneur:
Imagine a sentence. “I went looking for adventure.”
Imagine another one. “I never returned.”
Now imagine a sentence gradient between them—not a story, but a smooth interpolation of meaning. This is a weird thing to ask for! I’d never even bothered to imagine an interpolation between sentences before encountering the idea in a recent academic paper. But as soon as I did, I found it captivating, both for the thing itself—a sentence… gradient?—and for the larger artifact it suggested: a dense cloud of sentences, all related; a space you might navigate and explore.
My project called
sentencespace, now public on GitHub, serves up an API that provides two things.
- Sentence gradients: smooth interpolations between two input sentences.
- Sentence neighborhoods: clouds of alternative sentences closely related to an input sentence.
Sentence neighborhoods are simpler than gradients. Given an input sentence, what if we imagine ourselves standing at its location in sentence space, peering around, jotting down some of the other sentences we see nearby?