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:

Wolfram Research (2015), TextSentences, Wolfram Language function, https://reference.wolfram.com/language/ref/TextSentences.html (updated 2016).

Text

Wolfram Research (2015), TextSentences, Wolfram Language function, https://reference.wolfram.com/language/ref/TextSentences.html (updated 2016).

CMS

Wolfram Language. 2015. "TextSentences." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/TextSentences.html.

APA

Wolfram Language. (2015). TextSentences. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TextSentences.html

BibTeX

@misc{reference.wolfram_2024_textsentences, author="Wolfram Research", title="{TextSentences}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/TextSentences.html}", note=[Accessed: 05-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_textsentences, organization={Wolfram Research}, title={TextSentences}, year={2016}, url={https://reference.wolfram.com/language/ref/TextSentences.html}, note=[Accessed: 05-October-2024 ]}