Rulvar API reference / @rulvar/core / documentAnchorsOf
Function: documentAnchorsOf()
ts
function documentAnchorsOf(documentText, pattern?): readonly string[];Defined in: packages/core/src/orchestrator/claim-map.ts:102
Extracts the document's distinct citation anchors, in order.
Parameters
| Parameter | Type |
|---|---|
documentText | string |
pattern? | string |
Returns
readonly string[]