nl_tokens: Filters word combinations ending with certain function words .
pl_tokens: function filterFunctionWordsAtEnding ( wordCombinations , functionWords ) { return wordCombinations . filter ( function ( combination ) { const words = combination . getWords ( ) ; const lastWordIndex = words . <mask> - 1 ; return ! includes ( functionWords , words [ lastWordIndex ] ) ; } ) ; }