Sentence

data class Sentence(val tokens: List<Token>, val terminator: Punctuation?, val sourceRange: IntRange)

A sentence within a Paragraph.

Constructors

Link copied to clipboard
constructor(tokens: List<Token>, terminator: Punctuation?, sourceRange: IntRange)

Properties

Link copied to clipboard

character offsets in the source document.

Link copied to clipboard

the sentence-ending Punctuation token (., !, ?, or a closing quote/paren after one of those), or null if the sentence has no explicit terminator (e.g. the last sentence before a blank line).

Link copied to clipboard

the ordered list of Tokens that make up this sentence, including Word, Punctuation, and Whitespace tokens.