TextSentences

TextSentences["string"]

gives a list of the runs of characters identified as sentences in string.

TextSentences["string",n]

gives the first n sentences in string.

Details

Examples

open allclose all

Basic Examples  (2)

Segment a string into sentences:

Get the first three sentences from a block of text:

Scope  (2)

TextSentences accounts for capitalization, spacing, and punctuation:

Get the first four sentences in a ContentObject:

Properties & Relations  (2)

TextSentences is equivalent to TextCases[,"Sentence"]:

TextStructure splits texts into the same sentences:

Possible Issues  (1)

Sentences may not be precisely identified in unstructured text:

Neat Examples  (1)

Read a book sentence by sentence:

Introduced in 2015
 (10.1)
 |
Updated in 2016
 (11.0)