Subject: | Room for expansion |
There's room to expand the functionality of this module and give it more
of a raison d'etre:
Given a chunk of text, truncate in complete sentences or paragraphs,
as specified by the user, to a minimum (up to a maximum) number of
characters. Optionally return the entire source text if it is not
more than some percentage larger than the maximum.
This can be useful for generating RSS feeds, etc. It becomes a little
complicated to do well because of abbreviations, acronyms and quotations.