Status: how-to.
Written for you at a terminal with a synced corpus, asking "what is my corpus about, and where should the next draft start?" without opening a browser.
TOPIC-DISCOVERY.md says how every number here is
computed and CLI.md documents
every flag. EXPLORE-WEB.md is the interactive twin; it
reads the same stored artefacts, so the two cannot disagree. Every
command honours --json.
$ chitragupta corpus discover
131 topics over 497 papers
topic-0 emergent 28 papers
industry 4.0 seed 60 papers
devops seed 36 papers
...
Real corpus, trimmed. Every topic with its provenance (seed or
emergent), size and top terms, plus an uncovered by any topic: line
naming the papers the topic model and every seed phrase passed over.
--origins tells a hand-written seed from an extracted keyword and a
corroborated phrase.
chitragupta corpus discover "digital twin"
The topic's papers with full ledger entries and each paper's other topics, both linked-topic families with their evidence, and the stored brokerage numbers per family. Any free phrase resolves through the ladder (exact, fuzzy, hybrid BM25+cosine, then paper search), and the output names which rung answered.
--out overview.md writes an extractive Markdown overview from verbatim
member-paper snippets. --hops N shows the neighbourhood as rings by hop
distance, each neighbour typed by the family that reached it, and counts
what the topic cannot reach:
$ chitragupta corpus discover "digital twin" --hops 1
digital twin — neighbourhood by hop distance
hop 1:
asset (via shared papers)
digital shadow (via both families)
...
unreached from here: 65 topics
Without --family overlap or --family semantic the walk is over the
union, so "two hops" means "two hops over whichever family got there
first". With it the header names the family, and a neighbour both reach
is typed by the one you walked:
$ chitragupta corpus discover "digital twin" --hops 1 --family overlap
digital twin — neighbourhood by hop distance over shared papers
hop 1:
asset (via shared papers)
compression (via shared papers)
...
This is the terminal's half of the app's Edges picker. The topic view closes with the stored brokerage numbers:
brokerage (from the artefact):
over shared papers: 13 neighbours, density 0.42, effective size 9.97,
constraint 0.17 — reads as a bridge: its neighbours mostly do not connect
over semantic nearness: 5 neighbours, density 0.20, effective size 4.19,
constraint 0.34 — reads as a bridge: its neighbours mostly do not connect
$ chitragupta corpus discover --groups 8
8 groups, cut at merge distance 0.813166
topic-23 +23
topic-0
topic-6
...
Real corpus, trimmed. The stored merge tree cut into as close to eight groups as it allows: the app's resolution slider, with the same labels (biggest member leads, the rest counted).
$ chitragupta corpus discover --clusters --inflation 2.0
clusters at inflation 2, read from the artefact
over shared papers: 16 clusters
over semantic nearness: 39 clusters
talk alike, do not share papers (one semantic cluster, different paper-sharing clusters):
structural health monitoring — design (no shared papers at all)
topic-8 — design (1 shared paper)
...
Real corpus, trimmed. Both families' stored MCL partitions and the two disagreement lists (talk alike but share no papers; share papers but talk differently), sharpest first, capped with the drop reported.
$ chitragupta corpus discover --path "model-driven engineering" "physical twin" --family overlap
path over shared papers: model-driven engineering -> topic-60 -> physical twin
model-driven engineering -> topic-60 (strength 0.80, via: beaumont_towards_2024, ...)
topic-60 -> physical twin (strength 0.31, via: combemale_model-based_2023, ...)
Real corpus, evidence lists trimmed. The strongest chain over one
family, each hop with its evidence. --family is required, because the
walk never uses one fused weight. "No path over this family" is a real
answer, and often the interesting one.
$ chitragupta corpus discover --why "model-driven engineering" "physical twin"
model-driven engineering — physical twin
These share combemale_model-based_2023, ..., steinmetz_digital_2022, but
sharing 12 papers between topics of size 58 and 56 in a 497-paper corpus
is what chance predicts (p = 0.02, against a threshold of 0.01), so no
edge was drawn.
Real corpus, citekey list trimmed. The hypergeometric tail the gate weighed and its verdict, including the stored threshold, which the app cannot show.
$ chitragupta corpus discover --compare "digital twin" "model-driven engineering"
digital twin — model-driven engineering
union: 121 papers
held by all 2: heithoff_model-based_2024, pfeiffer_towards_2025, pfeiffer_towards_2025-1
pairwise shared papers:
digital twin & model-driven engineering: 3: heithoff_model-based_2024, ...
...
Real corpus, trimmed. Also lists the bridge papers held by two or more topics and the edges among them. It takes two to six topics; past six it refuses and names the count instead of truncating silently.
chitragupta corpus discover --paper kritzinger_digital_2018
chitragupta corpus discover --html topics.html
chitragupta corpus discover --app topicapp/
--paper lists every topic one paper belongs to, with scores. --html
writes the one-file static page and --app the interactive app
(EXPLORE-WEB.md).
| You want | Command |
|---|---|
| the topic map | chitragupta corpus discover |
| one topic's papers, neighbours and brokerage | chitragupta corpus discover "PHRASE" |
| one paper's topics | chitragupta corpus discover --paper CITEKEY |
| the broad areas, as N groups | chitragupta corpus discover --groups N |
| where the families disagree | chitragupta corpus discover --clusters [--inflation X] |
| the path between two topics | chitragupta corpus discover --path "A" "B" --family F |
| why two topics have no overlap edge | chitragupta corpus discover --why "A" "B" |
| several topics side by side | chitragupta corpus discover --compare "A" "B" ["C" ...] |
| a topic's neighbourhood as rings | chitragupta corpus discover "PHRASE" --hops 2 |
| a Markdown overview to seed a draft | chitragupta corpus discover "PHRASE" --out overview.md |
| only the topics you named, or only the emergent ones | chitragupta corpus discover --origins seed,corroborated |
| the static one-file page | chitragupta corpus discover --html topics.html |
| the interactive app | chitragupta corpus discover --app topicapp/ |
| any of the above, machine-readable | add --json |
Every one of the app's analytical views has a terminal twin here,
pinned to the app's arithmetic by a shared case file under
tests/topic_app/.