wordgraph-main
The groupant beside wordgraph/src/main.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.
Facts
Implementation material. A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.
Components
| component | label | where |
|---|---|---|
| Approximant | partial | Approximant |
| Ast | partial | syntax.json |
| Composition | partial | Composition |
| Cost | partial | Cost |
| Descriptant | present | Descriptant |
| Invariant | partial | Invariant |
| Tests | executed bounded checks | Tests |
Obernants
The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.
| relation | type | label | where |
|---|---|---|---|
| Behavior complement | behavior complement | partial source derived model | Behavior complement |
| Reverse reconstruction | reverse reconstruction | partial source derived model | Reverse reconstruction |
Model text
Descriptant
The wordgraph CLI: pass (Wikipedia tier-1 shards or CoNLL-U files, threads, control seed, date), build
(parameters, registry), stats, query (subjects, objects, isa, modifiers, does, show, near, edge, hint) and
absurdity.
Approximant
Argument parsing by flag removal, then dispatch to pass::run, compile::build, Graph queries and
eval::absurdity; prints JSON reports or aligned text.
Invariant
No command writes outside its --out path, its pass directory or the registry; query, stats and absurdity only
read. Unknown commands and missing arguments print the usage and fail.
Cost
The cost of the called function; stats adds O(N + G) scans.
Composition
Top of the crate: composes pass, compile, graph, eval, rel.
Tests
Exercised by the real runs of 2026-11-06 (README «Measurements»); no automated CLI test.
Behavior complement
No configuration file, no environment variables, no network, no deletion, no retries.
Reverse reconstruction
Output text keeps labels, relation names, PMI and approximate counts; node indices are not printed.
Provenance
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/wordgraph/src/main.rs.groupant/