lib/natural/ngrams/ngrams.js
function countNgrams(ngram) {
  nrOfNgrams++;
  var key = arrayToKey(ngram);
  if (!frequencies[key]) {
    frequencies[key] = 0;
  }
  frequencies[key]++;
}
function countNgrams(ngram) {
  nrOfNgrams++;
  var key = arrayToKey(ngram);
  if (!frequencies[key]) {
    frequencies[key] = 0;
  }
  frequencies[key]++;
}
function countNgrams ( ngram ) { nrOfNgrams ++ ; var key = arrayToKey ( ngram ) ; if ( ! frequencies [ key ] ) { frequencies [ key ] = 0 ; } frequencies [ key ] ++ ; }
Updates the statistics for the new ngram
Updates the statistics for the new ngram