lib/natural/phonetics/dm_soundex.js
function normalizeLength(token, length) {
	length = length || 6;
	if (token.length < length) {
		token += (new Array(length - token.length + 1)).join('0');
	}
    return token.slice(0, length);
}
function normalizeLength(token, length) {
	length = length || 6;
	if (token.length < length) {
		token += (new Array(length - token.length + 1)).join('0');
	}
    return token.slice(0, length);
}
function normalizeLength ( token , length ) { length = length || 6 ; if ( token . length < length ) { token += ( new Array ( length - token . length + 1 ) ) . join ( '0' ) ; } return token . slice ( 0 , length ) ; }
Pad right with zeroes or cut excess symbols to fit length
Pad right with zeroes or cut excess symbols to fit length