slackbuilds/perl/perl-Lingua-EN-Syllable
Heinz Wiesinger 63daf9f79a All: Support $PRINT_PACKAGE_NAME env var
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2021-07-17 21:55:09 +02:00
..
README perl/perl-Lingua-EN-Syllable: Added (short description of app). 2018-02-17 07:42:52 +07:00
perl-Lingua-EN-Syllable.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
perl-Lingua-EN-Syllable.info perl/perl-Lingua-EN-Syllable: Added (short description of app). 2018-02-17 07:42:52 +07:00
slack-desc perl/perl-Lingua-EN-Syllable: Added (short description of app). 2018-02-17 07:42:52 +07:00

README

perl-Linuga-EN-Syllable

Lingua::EN::Syllable::syllable() estimates the number of syllables in
the word passed to it.

Note that it isn't entirely accurate... it fails (by one syllable) for
about 10-15% of my /usr/dict/words. The only way to get a 100% accurate
count is to do a dictionary lookup, so this is a small and fast
alternative where more-or-less accurate results will suffice, such as
estimating the reading level of a document.

I welcome pointers to more accurate algorithms, since this one is
pretty quick-and-dirty. This was designed for English (well, American
at least) words, but sometimes guesses well for other languages.