lib/util/api.js
function lex(phrase) {
        var words = phrase && typeof(phrase) === 'string' ? lexer.lex(phrase) : {status:"Invalid phrase parameter"};
        logger.log('verbose', '%s|lex|phrase=%s|words=%j', meta.module, phrase, words, meta);
        return words;
    }
function lex(phrase) {
        var words = phrase && typeof(phrase) === 'string' ? lexer.lex(phrase) : {status:"Invalid phrase parameter"};
        logger.log('verbose', '%s|lex|phrase=%s|words=%j', meta.module, phrase, words, meta);
        return words;
    }
function lex ( phrase ) { var words = phrase && typeof ( phrase ) === 'string' ? lexer . lex ( phrase ) : { status : "Invalid phrase parameter" } ; logger . log ( 'verbose' , '%s|lex|phrase=%s|words=%j' , meta . module , phrase , words , meta ) ; return words ; }
Split a phrase into words

@param phrase: A string

@return an array of words
Split a phrase into words