DiscourseGeometry

Compare two collections of texts on theoretically defined semantic axes, using the spatial-geometric framework of Vallego (2026): centroid projection (where does each collection sit, and did it move?), Frobenius norm (how large is the difference, and how much of it do the named axes capture?) and eigenanalysis (did the shape and orientation of the collection change?).

Each axis is defined by two sets of exemplar texts (pole A and pole B). The first axis is the primary axis; further secondary axes (up to five) decompose it and are orthogonalised in the order given. Use Paired for two sets of responses to the same prompts in the same order (e.g. a base model and its fine-tuned version), and Independent for two corpora. Separate units with a line containing only ---, with blank lines, or one per line.

Part of the H4rmony Project · Cite this work (expand below)

Vallego, J. (2026). A spatial-geometric framework for discourse comparison: Centroid projection, Frobenius norm, and eigenanalysis in a constructed semantic measurement space. SSRN. https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6387958

Vallego, J. (2026). DiscourseGeometry [Software]. Hugging Face Spaces. https://huggingface.co/spaces/neovalle/DiscourseGeometry

@misc{vallego2026framework,
  author = {Vallego, Jorge},
  title  = {A Spatial-Geometric Framework for Discourse Comparison: Centroid Projection,
            Frobenius Norm, and Eigenanalysis in a Constructed Semantic Measurement Space},
  year   = {2026},
  howpublished = {SSRN},
  url    = {https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6387958}
}
@software{vallego2026discoursegeometry,
  author    = {Vallego, Jorge},
  title     = {DiscourseGeometry},
  year      = {2026},
  publisher = {Hugging Face Spaces},
  url       = {https://huggingface.co/spaces/neovalle/DiscourseGeometry}
}
Preset

Loads axes, exemplars and example collections

Units are separated by
3D view

Semantic map: the chosen x axis on its 0–100% scale, with its pole exemplars; y and z are the main directions in which all texts differ apart from that axis (as in SpatialSemanticAnalysis). Chosen axes: x, y and z are three axes of your choice.

x axis
y axis (chosen axes only)
z axis (chosen axes only)

Units (first 500; full table in the CSV)