Skip to main content

Function: splitVerseWords()

splitVerseWords(text): string[]

Defined in: Data/Text/VerseFormatting.ts:191

The canonical word tokenization for verse text.

This single rule defines the space that every word offset in the format is expressed in — formatting.spans, user_text_markup, and interlinear_word. Because text is normalized first, the rule is simply "split on whitespace".

Parameters

text

string

Returns

string[]