Designates a string as part of a chunk expression, delimited by Unicode sentence breaks, as determined by the ICU Library.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 7.0 Security:
# Syntax
sentence
# Examples
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.
# 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
# Tags
# See