yantra/patha/parampara.js
परम्परा: the tradition's own records as data, and the correction they yield.
328 lines · 0 exports
The header, as the file states it
What it loads
nothing
What it exports
SS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
21 top-level functions read from the source; the doc line is the comment above each; calls and callers are resolved across the registry’s modules by name. Line numbers are the file’s at engine 3f94072.
Which kind of place a 'from' names: { kind: "etext"|"file"|"verse", … } or null.
── exact rationals (for the time-unit ratios) ─────────────────────────────────────────────────────────
A number or "n/d" string → a rational.
bhūtasaṅkhyā: the words' values, first word the units; a word worth more than 9 gives its digits as written (tithi 15 then viśva 13 → 1315).
An expression over number words (time-units.json 'expr') → a rational: a stem; {"×": [...]} product; {"+": [...]} sum; {"bh": [...]} bhūtasaṅkhyā of the stems, first the units.
── validation ─────────────────────────────────────────────────────────────────────────────────────────
The registry's shape and provenance rules (see the header). Returns the list of errors (empty when it holds).
The time-unit registry: its chain multiplies out, every attestation is tagged and placed, each stated ratio is derived from its number words, and each unit's spandas follow from the unit it is measured by.
The graha layer: each layer quotes its verses, and each japa count is the bhūtasaṅkhyā of its words × 1000.
── the saṃskāra ───────────────────────────────────────────────────────────────────────────────────────
Load the parsed corpus files. Throws if the registry (or any other file given) breaks its rules.