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

	var fullWordExclusion = countFullWordDeviations( word, locale );
	if ( fullWordExclusion !== 0 ) {
		return fullWordExclusion;
	}

	var partialExclusions = countPartialWordDeviations( word, locale );
	word = partialExclusions.word;
	syllableCount += partialExclusions.syllableCount;
	syllableCount += countUsingVowels( word, locale );

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

	var fullWordExclusion = countFullWordDeviations( word, locale );
	if ( fullWordExclusion !== 0 ) {
		return fullWordExclusion;
	}

	var partialExclusions = countPartialWordDeviations( word, locale );
	word = partialExclusions.word;
	syllableCount += partialExclusions.syllableCount;
	syllableCount += countUsingVowels( word, locale );

	return syllableCount;
}
function ( word , locale ) { var syllableCount = 0 ; var fullWordExclusion = countFullWordDeviations ( word , locale ) ; if ( fullWordExclusion !== 0 ) { return fullWordExclusion ; } var partialExclusions = countPartialWordDeviations ( word , locale ) ; word = partialExclusions . word ; syllableCount += partialExclusions . syllableCount ; syllableCount += countUsingVowels ( word , locale ) ; return syllableCount ; }
Counts the number of syllables in a word.

@param {string} word The word to count syllables of.
@param {string} locale The locale of the word.
@returns {number} The syllable count for the word.
Counts the number of syllables in a word .