firstSentence¶
- emlib.textlib.firstSentence(txt)[source]¶
Returns the first sentence from txt
- Parameters:
txt (
str
) – the text to analyze- Return type:
str
- Returns:
the first sentence
Example
>>> firstSentence(''' ... ... This is my text. It is amazing ... It continues here ... ''') "This is my text"
>>> firstSentence(''' ... ... This is also my text ... It continues here ... ''') "This is also my text"