The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::ToSentences - Perl extension for converting pieces of text into individual sentences.

SYNOPSIS

  use Text::ToSentences;
  @sentences = @{Text::ToSentences::convert($text)};

DESCRIPTION

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)

EXPORT

convert

AUTHOR

Alberto Montero, <alberto.montero.asenjo@gmail.com<gt>

COPYRIGHT AND LICENSE

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.

convert

Split the given piece of text in sentences.

_putSpacesAroundBlockDelimiters

Put spaces around parenthesis and similar characters

_correctDotsAndSpaces

Correct duplicated spaces and those incorrectly situated around dots

_isNotSentenceStart

Return true if the specified word is not a sentence start, according to usual tipographical rules (uppercase, lowercase, acronyms, ...)

_isAcronym

Return true if the specified word is an acronym.

_isSentenceEnd

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:

Around line 84:

'=item' outside of any '=over'

=over without closing =back