-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
$text = "'Quoted text!'.\nAnother line";
// Create a new instance
$Sentence = new \Vanderlee\Sentence\Sentence();
// Split into array of sentences
$sentences = $Sentence->split($text);
var_dump($sentences);
End of the quote and dot incorrectly parsed to a separate sentence. Sentence without exclamation mark is parsed correctly
array(3) { [0]=> string(13) "'Quoted text!" [1]=> string(3) "'. " [2]=> string(12) "Another line" }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels