Source Variorum

Method: comparative analysis. Object: two or more witnesses of a text, code or prose.

sourcevariorum.vercel.app · github.com/Computational-Hermeneutics/Source-Variorum · All tools

Source Variorum is a side-by-side textual collation workbench. A variorum, from cum notis variorum, “with the notes of various people”, is a work of textual criticism that collates all known variants of a text and sets them side by side, so that a reader can track how textual decisions have been made in preparing a text for publication. Source Variorum brings that apparatus to computational close reading. It is the comparative-analysis tool of the Computational Hermeneutics family.

Why Source Variorum

Versions of a text, whether commits of source code or witnesses of a poem, differ from one another in ways that are interpretively significant. Lines are added, deleted, and substituted; whole passages move. Standard diff tools show insertion and deletion but cannot see transposition: moved text reads as a deletion in one place and an unrelated addition in another, and the movement, often the most telling thing, is lost. Source Variorum is built to make movement visible, and to render the full range of variation as a single readable apparatus.

Two modes

Two engines

Collation is not one operation. Code is almost one-to-one, lines correspond closely and the question is which lines changed, whereas prose is discourse, the “same” sentence is routinely rephrased and the question is which passages correspond at all. Source Variorum therefore collates with two engines, each with its own braid settings, selected to match the object under comparison. Both run on the same pure, deterministic core, so the typed variants, the apparatus, and the statistics stay in step whichever engine is in play.

The engine follows the mode by default, the CX profile for code and the TX profile for prose, and the per-engine braid options are exposed in a settings panel for hand-tuning, with a three-tier confidence reading on each ribbon.

What it shows

Theoretical background

Source Variorum makes the vocabulary of textual scholarship, the witness, the siglum, the copy-text, the apparatus criticus, the transposition, operable on computational material. It treats the differences between witnesses not as noise to be minimised but as the textual condition itself: the record of how a text was made and remade. The braid is the argument made visible.

Stack

Next.js, React, TypeScript, Tailwind, CodeMirror, jsdiff, and jsPDF. The collation is computed live in the browser by a set of pure, deterministic functions: it is local-first, with no server and no model calls. A saved .svar project stores only the source of truth, the witnesses and your apparatus notes, and never the variants, which are recomputed deterministically on load. Hosted at sourcevariorum.vercel.app; the repository carries full setup instructions.

Status

Version 0.9.x (first release). Source code and text modes are live, with the two collation engines (CX and TX), the transposition braid, the five variant types plus fuzzy variant, the judgement layer (approve, graduated doubt, tentative), word-level refinement and precise manual hand-braiding, the overview minimap, a project workbench (sources, folders, per-panel editing, undo/redo), analysis views (stemma / distance tree, dotplot, change-overview histogram, witness statistics), an auto-generated critical apparatus with a quantitative deep-dive, and export to Markdown, TEI P5, PDF, and JSON. Support for three or more witnesses is a later phase. See the repository for the current state of each capability.

Licence

GNU General Public License v3.0 or later (GPL-3.0-or-later), © 2026 David M. Berry. Source Variorum was previously released under the MIT License; as sole copyright holder David M. Berry has relicensed the project, including all prior versions, under GPL-3.0-or-later.

Siblings

CCS Workbench takes the close-reading method, opening a single artefact of code for annotation and interpretation. The two tools share an annotation layer, so a reading made over a single witness in the Workbench can be brought to bear on the loci of divergence that Source Variorum surfaces.