Name: sentences

Type: keyword

Syntax: sentences

Summary: Used with the <number> <function (control_st)>to designate parts of a string delimited by Unicode sentence breaks, as determined by the ICU Library.

Introduced: 7.0

OS: mac,windows,linux,ios,android

Platforms: desktop,server,web,mobile

Example:
put "This is the first sentence. This is the second sentence." into tText
put the number of sentences in tText -- returns 2

Example:
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

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.

References: sentence (keyword), number (function), function (control_st), keyword (glossary)

Tags: database
