nl_tokens: Gets positions of the first character of a word in the input text .
pl_tokens: function getIndicesOfWords ( text ) { const indices = [ ] ; const words = getWords ( text ) ; let startSearchFrom = 0 ; words . forEach ( function ( word ) { const currentIndex = text . indexOf ( word , startSearchFrom ) ; indices . push ( currentIndex ) ; startSearchFrom = currentIndex + <mask> . length ; } ) ; return indices ; }