Total Syllables:

This script isn't entirely accurate due to the numerous syllabic anomolies found within the English language (e.g., past, parsed, parted, priest, scariest, burlesque, mosque, bloodshed, wished). The only way to get a 100% accurate count is to do a dictionary lookup. Odd things happen when there's too many line breaks and spaces.

Incidentally, this script is the only non-dictionary one that appears to correctly calculate the number of syllables in the famous pangram 'The quick brown fox jumps over the lazy dog'. The two most popular counters on the web give answers of 8 and 10.

Here's some syllable rules. And here's a knowledge.

Download Source Code

Use only single spaces between words and avoid empty lines.