sentences

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
sentences
Summary

Used with the number function (control structure)to designate parts of a string 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 the number of sentences in tText -- returns 2
put "The green apple costs $0.50, the red apple costs $0.60. Which one should I buy?" into tText
put the number of sentences in tText -- returns 2
RelatedKeyword: sentence
Function: number
Glossary: keyword
Control Structure: function
Description

Use the sentences keyword to count the number of sentences in a container.

A sentence is a chunk delimited by Unicode sentence breaks, as determined by the ICU Library.

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

Tagsdatabase