lib/util/api.js
function tag(words) {
        var taggedWords = (words && typeof(words) === 'string') ? tagger.tag(lexer.lex(words)) : (words && typeof(words) === 'object') ? tagger.tag(words) : {status:"Invalid words parameter"};
        logger.log('verbose', '%s|tag|words=%j|tags=%j', meta.module, words, taggedWords, meta);
        return taggedWords;
    }
function tag(words) {
        var taggedWords = (words && typeof(words) === 'string') ? tagger.tag(lexer.lex(words)) : (words && typeof(words) === 'object') ? tagger.tag(words) : {status:"Invalid words parameter"};
        logger.log('verbose', '%s|tag|words=%j|tags=%j', meta.module, words, taggedWords, meta);
        return taggedWords;
    }
function tag ( words ) { var taggedWords = ( words && typeof ( words ) === 'string' ) ? tagger . tag ( lexer . lex ( words ) ) : ( words && typeof ( words ) === 'object' ) ? tagger . tag ( words ) : { status : "Invalid words parameter" } ; logger . log ( 'verbose' , '%s|tag|words=%j|tags=%j' , meta . module , words , taggedWords , meta ) ; return taggedWords ; }
Tag each words in an array of words

@param words: (string): run the lexer first, then the tagger. (array): run the tagger directly

@return an array of array of words with their tags
Tag each words in an array of words