API Reference / reconcile · function

Function: reconcile()

function reconcile(reading, opts?): ReadingGroup[];

Group a Reading's entries by the facts they share, so statements about the same atoms surface together rather than scattered through a flat list -- the substrate for "everything said about this placement" and for spotting contention. Entries are connected when their cited atoms overlap; an entry citing nothing (an absence rule) stands alone. A group is contested when a declared conflicting tag-pair both appear in it.

Semantic contradiction is the corpus author's to declare (via tags + conflicts); the resolver does the bookkeeping, not the judgement.

Parameters

ParameterTypeDescription
readingReadingA reading from interpret.
optsReconcileOptionsConflicting tag pairs and optional text de-duplication.

Returns

ReadingGroup[]

Groups sorted by descending salience.

Start building

Quickstart →