Skip to content

DepToken

Defined in: parse-types.ts:8

Parser-neutral Universal Dependencies data consumed by WritingLint.

Offsets are document-global UTF-16 code-unit indices, matching JavaScript’s String.prototype.slice. Token ids and heads are 1-based within a sentence; a head of 0 marks the root.

optional confidence?: object

Defined in: parse-types.ts:20

Calibrated probabilities when the parser can provide them.

optional deprel?: number

optional head?: number

optional upos?: number


deprel: string

Defined in: parse-types.ts:13


end: number

Defined in: parse-types.ts:15


optional features?: Readonly<Record<string, string>>

Defined in: parse-types.ts:18

Parser-neutral Universal Dependencies morphological features.


form: string

Defined in: parse-types.ts:10


head: number

Defined in: parse-types.ts:12


id: number

Defined in: parse-types.ts:9


optional lemma?: string

Defined in: parse-types.ts:16


start: number

Defined in: parse-types.ts:14


upos: string

Defined in: parse-types.ts:11