lib/index.js
function isNameAbbreviation(wordCount, words) {
    if (words.length > 0) {
        if (wordCount < 5 && words[0].length < 6 && isCapitalized(words[0])) {
            return true;
        }

        var capitalized = words.filter(function(str) {
            return /[A-Z]/.test(str.charAt(0));
        });

        return capitalized.length >= 3;
    }

    return false;
}
function isNameAbbreviation(wordCount, words) {
    if (words.length > 0) {
        if (wordCount < 5 && words[0].length < 6 && isCapitalized(words[0])) {
            return true;
        }

        var capitalized = words.filter(function(str) {
            return /[A-Z]/.test(str.charAt(0));
        });

        return capitalized.length >= 3;
    }

    return false;
}
function isNameAbbreviation ( wordCount , words ) { if ( words . length > 0 ) { if ( wordCount < 5 && words [ 0 ] . length < 6 && isCapitalized ( words [ 0 ] ) ) { return true ; } var capitalized = words . filter ( function ( str ) { return / [A-Z] / . test ( str . charAt ( 0 ) ) ; } ) ; return capitalized . length >= 3 ; } return false ; }
Uses current word count in sentence and next few words to check if it is more likely an abbreviation + name or new sentence.
Uses current word count in sentence and next few words to check if it is more likely an abbreviation + name or new sentence .