nl_tokens: Splits sentences into sentence parts based on stopwords .
pl_tokens: function splitOnWords ( sentence , stopwords ) { const splitSentences = [ ] ; // Split the sentence on each found stopword and push this part in an array. forEach ( stopwords , function ( stopword ) { const sentenceSplit = sentence . <mask> ( stopword ) ; if ( ! isEmpty ( sentenceSplit [ 0 ] ) ) { splitSentences . push ( sentenceSplit [ 0 ] ) ; } const startIndex = sentence . indexOf ( stopword ) ; const endIndex = sentence . length ; sentence = stripSpaces ( sentence . substr ( startIndex , endIndex ) ) ; } ) ; // Push the remainder of the sentence in the sentence parts array. splitSentences . push ( sentence ) ; return splitSentences ; }