src/stringProcessing/syllables/count.js
function( text, locale ) {
	text = text.toLocaleLowerCase();
	var words = getWords( text );

	var syllableCounts = map( words,  function( word ) {
		return countSyllablesInWord( word, locale );
	} );

	return sum( syllableCounts );
}
function( text, locale ) {
	text = text.toLocaleLowerCase();
	var words = getWords( text );

	var syllableCounts = map( words,  function( word ) {
		return countSyllablesInWord( word, locale );
	} );

	return sum( syllableCounts );
}
function ( text , locale ) { text = text . toLocaleLowerCase ( ) ; var words = getWords ( text ) ; var syllableCounts = map ( words , function ( word ) { return countSyllablesInWord ( word , locale ) ; } ) ; return sum ( syllableCounts ) ; }
Counts the number of syllables in a text per word based on vowels.
Uses exclusion words for words that cannot be matched with vowel matching.

@param {String} text The text to count the syllables of.
@param {String} locale The locale to use for counting syllables.
@returns {int} The total number of syllables found in the text.
Counts the number of syllables in a text per word based on vowels . Uses exclusion words for words that cannot be matched with vowel matching .