Skip to content
greek conversion

ParseResult

Defined in: src/conversion.ts:70 (opens in a new tab)

A parsed document with the position of each token in the input.

document: Document

Defined in: src/conversion.ts:72 (opens in a new tab)

The canonical document.


spans: readonly TokenSpan[]

Defined in: src/conversion.ts:82 (opens in a new tab)

One span per token, in token order. Spans are in order (their starts and their ends never decrease) and cover the input without gaps. Tokens read from one character of the input (the jamo of a Hangul syllable, kept as literals; the two letters read from a modern-digraph b) share its span; a token read from part of a character that the previous token also draws on (the dot below of a precomposed ḥ after the p of ph) has that character’s span, inside the previous token’s and ending with it.