nl_tokens: Finds if the index is inside one of the items Items should be in the same format as returned from util . findPositions
pl_tokens: function inPosition ( index , items ) { for ( var i = 0 ; i < items . length ; i ++ ) { var item = items [ i ] ; if ( index >= <mask> . start && index <= item . end ) return item ; } return false ; }