function findStandardPattern(word) {
	for ( var i = 0; i < pattern.length; i++) {
		if ((preferredGender == "0" || preferredGender == pattern[i][0]) && isPattern(pattern[i][1], word) >= 0) {
			break;
		}
	}

	if (i >= pattern.length) {
		return -1;
	}

	return i;
}
/**
 * Finds the first matching standard declination pattern.
 * 
 * In case the preferred gender is set (preferredGender), only patterns of that
 * gender are considered.
 * 
 * @param word
 * @returns {Number} index of the first matching pattern
 */
Finds the first matching standard declination pattern.

In case the preferred gender is set (preferredGender), only patterns of that
gender are considered.

@param word
@returns {Number} index of the first matching pattern
Finds the first matching standard declination pattern . In case the preferred gender is set ( preferredGender ) only patterns of that gender are considered . @param word @returns { Number } index of the first matching pattern
function findStandardPattern(word) {
	for ( var i = 0; i < pattern.length; i++) {
		if ((preferredGender == "0" || preferredGender == pattern[i][0]) && isPattern(pattern[i][1], word) >= 0) {
			break;
		}
	}
	if (i >= pattern.length) {
		return -1;
	}
	return i;
}
function findStandardPattern ( word ) { for ( var i = 0 ; i < pattern . length ; i ++ ) { if ( ( preferredGender == "0" || preferredGender == pattern [ i ] [ 0 ] ) && isPattern ( pattern [ i ] [ 1 ] , word ) >= 0 ) { break ; } } if ( i >= pattern . length ) { return - 1 ; } return i ; }
Finds the first matching standard declination pattern.
Finds the first matching standard declination pattern .