sentence

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
sentence
Summary

Designates a string as part of a chunk expression, delimited by Unicode sentence breaks, as determined by the ICU Library.

Introduced7.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put "This is the first sentence. This is the second sentence." into tText
put sentence 2 of tText -- returns "This is the second sentence."
put "The green apple costs $0.50, the red apple costs $0.60. Which one should I buy?" into tText
put the first sentence of tText
-- returns "The green apple costs $0.50, the red apple costs $0.60. " also note that the space after the full stop is included in the return value.
RelatedKeyword: item, character, segment, trueWord, line, word, token, paragraph
Description

Use the sentence keyword to refer to one or more sentences in a container.

A sentence is a chunk delimited by Unicode sentence breaks, as determined by the ICU Library. A sentence can contain multiple words, but not multiple lines.

Note: The sentence chunk includes the punctuation mark at the end of the sentence, if there is one. It will also include any trailing spaces. The rules describing Unicode sentence breaks are available at http://www.unicode.org/reports/tr29/#Sentence_Boundaries

Tagstext processing