Text::ToSentences - Perl extension for converting pieces of text into individual sentences.
use Text::ToSentences; @sentences = @{Text::ToSentences::convert($text)};
Extract sentences from a given piece of text. It is aware of acronyms and parenthesis (including some mistakes as not closing or not opening ones)
convert
Alberto Montero, <alberto.montero.asenjo@gmail.com<gt>
Copyright (C) 2007 by Alberto Montero
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
Split the given piece of text in sentences.
Put spaces around parenthesis and similar characters
Correct duplicated spaces and those incorrectly situated around dots
Return true if the specified word is not a sentence start, according to usual tipographical rules (uppercase, lowercase, acronyms, ...)
Return true if the specified word is an acronym.
Return true if the specified word is a sentence end, according to tipographical rules.
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=over without closing =back
To install Text::ToSentences, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::ToSentences
CPAN shell
perl -MCPAN -e shell install Text::ToSentences
For more information on module installation, please visit the detailed CPAN module installation guide.