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
- White spaces and line breaks in between sentences in string are dropped by TextSentences.
- TextSentences[ContentObject[…]] gives sentences from the plain text contents of the ContentObject.
Examples
open allclose allBasic Examples (2)
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:
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