function samePOS(a,b, callback)
{
    var strab = a + " " + b;
    wordpos.getPOS(strab, function sumAndCheckPOS(posres) {
        //console.log(strab + " v=" + posres.verbs.length + " n="+ posres.nouns.length+" av="+ posres.adverbs.length+" ad="+ posres.adjectives.length+" r="+posres.rest.length);
        if (posres.verbs.length == 2 || posres.nouns.length == 2 || posres.adverbs.length == 2 || posres.adjectives.length == 2) {
            callback(true);
        }
        else {
            callback(false);
        }
    });
}
//Takes two single words a,b, calls back with true if they are the same POS, false if not.
Takes two single words a,b, calls back with true if they are the same POS, false if not.
Takes two single words a b calls back with true if they are the same POS false if not .
function samePOS(a,b, callback)
{
    var strab = a + " " + b;
    wordpos.getPOS(strab, function sumAndCheckPOS(posres) {
        if (posres.verbs.length == 2 || posres.nouns.length == 2 || posres.adverbs.length == 2 || posres.adjectives.length == 2) {
            callback(true);
        }
        else {
            callback(false);
        }
    });
}
function samePOS ( a , b , callback ) { var strab = a + " " + b ; wordpos . getPOS ( strab , function sumAndCheckPOS ( posres ) { if ( posres . verbs . length == 2 || posres . nouns . length == 2 || posres . adverbs . length == 2 || posres . adjectives . length == 2 ) { callback ( true ) ; } else { callback ( false ) ; } } ) ; }
Takes two single words a,b, calls back with true if they are the same POS, false if not.
Takes two single words a b calls back with true if they are the same POS false if not .
//console.log(strab + " v=" + posres.verbs.length + " n="+ posres.nouns.length+" av="+ posres.adverbs.length+" ad="+ posres.adjectives.length+" r="+posres.rest.length);