normalize method

List<String> normalize(
  1. String text
)

Splits and normalizes text, preserving the pinned sentence order.

The returned list is immutable. As upstream, empty input yields one empty sentence rather than an empty list.

Implementation

List<String> normalize(String text) =>
    List<String>.unmodifiable(_split(text).map(normalizeSentence));