nl_tokens: Calculates occurrences for a list of word combinations .
pl_tokens: function calculateOccurrences ( wordCombinations ) { const occurrences = { } ; forEach ( wordCombinations , function ( wordCombination ) { const combination = wordCombination . getCombination ( ) ; if ( ! has ( occurrences , combination ) ) { occurrences [ combination ] = wordCombination ; } occurrences [ combination ] . incrementOccurrences ( ) ; } ) ; return <mask> ( occurrences ) ; }