nl_tokens: Matches string with an array returns the word and the index it was found on .
pl_tokens: function ( words , text ) { var matchedWords = [ ] ; forEach ( words , function ( word ) { word = stripSpaces ( word ) ; if ( ! matchWordInSentence ( word , text ) ) { return ; } matchedWords = matchedWords . concat ( getIndicesByWord ( word , <mask> ) ) ; } ) ; return matchedWords ; }