Trevixal API
    Preparing search index...
    • Sentences with their offsets. Splits on ., !, ? and followed by whitespace, except after known abbreviations (e.g., Dr.) and initials (J. K. Rowling). Decimals (3.14) never split because nothing follows the period but a digit.

      Parameters

      • text: string

      Returns readonly SentenceSpan[]