Ptree: Interactive Tree of Life Explorer Blog & articles

Blog · Craft · · 2 min read

Semantic Voronoi

A Voronoi diagram partitions a plane around seed points so every location belongs to whichever seed sits closest to it. Naming in software and data curation works the same way: every word you choose (a trait category, a column name, a UI label, or a line in a prompt) is a seed in meaning-space. A strong name claims a large, sharply bounded cell. A weak name sits on a blurry border and leaks into its neighbors.

Induction and deduction

Most bad names fail in one direction. Take status as a column or property name: you can induct up to status from almost any set of examples (conservation risk, taxonomic validity, native vs. introduced, living vs. extinct), so it feels reasonable while writing the schema. Try reasoning down from the word status alone and it tells you nothing about what sits inside the column.

A good name passes both tests: intensional and extensional adequacy. Draft upward from the real examples, then reason strictly downward from the word into every case it should include and every neighboring case it must exclude.

Ptree's Ontogeny property illustrates this clearly. The animal literature calls indirect development larval, which works fine if you only look at insects and frogs. Reason downward from larval across all of life and it breaks immediately on ferns: a fern's free-living prothallus is an earlier body plan that the adult replaces, just like a caterpillar or a tadpole, yet no botanist calls a prothallus a larva. Naming the bin staged against direct separates every nearest neighbor cleanly across kingdoms: caterpillar against nymph in insects, tadpole against froglet in amphibians, trochophore against direct-developing snail in mollusks, and prothallus against seedling in plants.

Every word excludes its neighbors

In meaning-space, picking a word for one bin implies that neighboring bins lack that property. Calling one Position category aquatic immediately implies surface and attached are non-aquatic, which breaks the moment a kelp holdfast or a coral polyp sits attached on the seabed. Calling it open instead (suspended in open water or air, touching no substrate) keeps every neighbor cleanly separated.

The test is substitution: if your label or definition could accurately describe an adjacent category or sibling column, it is unfinished. Separate nearest neighbors first:

  • Split where meanings overlap. In Ptree's pipeline, identity failure (two sources matched the wrong organism) and vocabulary failure (a source term mapped to the wrong bin) never share a bucket or an error message, because mixing them makes both impossible to diagnose.
  • Merge where domains never collide. A bacterium driven by a flagellar motor and a walking mammal never overlap in the same clade, so sharing mobile ("moves under its own power") keeps each neighborhood distinct while letting one color light up active movement across every kingdom.
  • Split overloaded virtues in two. "Be clever" is ambiguous until you partition it: clever in architecture, plain in local expressions.

Names are wiring

The code mirror of Semantic Voronoi is strict vocabulary alignment: different meanings take distant names, and identical meanings take identical names across DOM radio values, URL route tokens, SQLite store IDs, module filenames, and dispatch keys.

When every seed owns one clean cell and no two names fight over the same concept, translation tables disappear and every label on screen explains the exact boundary the code enforces underneath.