Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Milestone 2: Hierarchical Parsing and Standardization

Milestone 2 transforms the LaTeX sources collected in Milestone 1 into a structured representation for each publication and its versions. The implementation gathers the files on the compilation path, constructs a document hierarchy, normalizes element content, and consolidates references and repeated elements across versions.

The M2 source code implements hierarchical parsing, standardization, and export.

Processing workflow

  1. Enumerate the local versions of each publication and inspect their M1 status.

  2. Identify the root source and recursively expand its included files.

  3. Parse the expanded source into headings, paragraphs, lists, sentences, formulas, and figures.

  4. Extract bibliography entries, consolidate duplicate references, and rewrite citation keys.

  5. Normalize element content, remove empty nodes, and share identifiers for matching content.

  6. Write the publication’s elements, version-specific parent relations, and unified bibliography.

The hierarchical parsing chapter explains source gathering and tree construction. The standardization chapter explains cleanup, reference handling, deduplication, and the output schemas.

The statistics and performance chapters present the exported results of five runs covering 25,000 publication IDs. Their figures and tables are generated from reconciled per-range exports during book compilation. All five ranges were processed independently using the same M2 implementation.

Output and downstream use

The working output consists of three JSONL tables: elements, hierarchy, and bibtex. A shared element store reduces repeated content, while version-specific edges retain the parent relations of each version. The bibliography contains references extracted from the publication’s own source; Semantic Scholar references collected in M1 remain a separate input for reference matching in M3.

The M2 statement defines these tables and the parsing and standardization requirements.