asafge / NewsBlurPlus

A news+ extension for the newsblur RSS reading service
MIT License
10 stars 1 forks source link

Use NewsBlur's algorithm for calculating intelligence #23

Closed asafge closed 11 years ago

asafge commented 11 years ago

From the source:

compute_story_score: function(story) {       var score = 0;       var intelligence = story.get('intelligence');       var score_max = Math.max(intelligence['title'],                                intelligence['author'],                                intelligence['tags']);       var score_min = Math.min(intelligence['title'],                                intelligence['author'],                                intelligence['tags']);       if (score_max > 0) score = score_max;       else if (score_min < 0) score = score_min;            if (score == 0) score = intelligence['feed'];            return score;     },