index.js
function avgAssessment(assessments, weighted) {
    var w;
    var s = 0;
    var n = 0;
    assessments.forEach(function (ws) {
      w = weighted(ws[0]);
      s += w * ws[1];
      n += w;
    });
    if (n === 0) {
      return 0;
    } else {
      return s / n;
    }
  }
function avgAssessment(assessments, weighted) {
    var w;
    var s = 0;
    var n = 0;
    assessments.forEach(function (ws) {
      w = weighted(ws[0]);
      s += w * ws[1];
      n += w;
    });
    if (n === 0) {
      return 0;
    } else {
      return s / n;
    }
  }
function avgAssessment ( assessments , weighted ) { var w ; var s = 0 ; var n = 0 ; assessments . forEach ( function ( ws ) { w = weighted ( ws [ 0 ] ) ; s += w * ws [ 1 ] ; n += w ; } ) ; if ( n === 0 ) { return 0 ; } else { return s / n ; } }
var syn = self.synsets[id]; if (_.isUndefined(syn)) { syn = def(self.synsets[id.replace(/-0+/, "-")], [0.0, 0.0]); } return syn.slice(0,2); } };
var syn = self . synsets [ id ] ; if ( _ . isUndefined ( syn )) { syn = def ( self . synsets [ id . replace ( / - 0 + / - ) ] [ 0 . 0 0 . 0 ] ) ; } return syn . slice ( 0 2 ) ; } } ;