src/stringProcessing/syllables/count.js
function( word, locale ) {
	var syllableCount = 0;

	syllableCount += countVowelGroups( word, locale );
	syllableCount += countVowelDeviations( word, locale );

	return syllableCount;
}
function( word, locale ) {
	var syllableCount = 0;

	syllableCount += countVowelGroups( word, locale );
	syllableCount += countVowelDeviations( word, locale );

	return syllableCount;
}
Count the number of syllables in a word, using vowels and exceptions.

@param {String} word The word to count the number of syllables of.
@param {String} locale The locale to use for counting syllables.
@returns {number} The number of syllables found in a word.