Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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.

DetailsDetails

  • Characters in string that are not identified as being part of sentences are dropped by TextSentences.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Segment a string into sentences:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Get the first three sentences from a block of text:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.1)