nl_tokens: Markup an array of Status values with spans
pl_tokens: function ( scores ) { var completion = '' ; // Create mark-up var i = 0 ; var lastStatus = - 1 ; while ( true ) { if ( lastStatus !== scores [ i ] ) { completion += '<span class=' + scores [ i ] . toString ( ) + '>' ; lastStatus = scores [ i ] ; } completion += this . element . value [ i ] ; i ++ ; if ( i === this . <mask> . value . length ) { completion += '</span>' ; break ; } if ( lastStatus !== scores [ i ] ) { completion += '</span>' ; } } return completion ; }