Browse the docs

sentences

Splits text into its sentences.

Details #

sentences(text) returns the sentences as a list of text, using the Mac's tokenizer. It knows abbreviations (Dr. Smith stays together) and works in any language, Japanese and Chinese included.

Parameters #

Takes 1 argument. {{ sentences(text) }}

Examples #

sentences("Dr. Smith went home. It was late!")
→ [ "Dr. Smith went home.", "It was late!" ]
length(sentences(clipboard()))
→ 0

Gotchas #

  • Empty text gives an empty list.