def score!
      mark_scorable_elements!

      scorable_elements.each do |element|
        points = 1
        points += element.text.split(',').length
        points += [element.text.length / 100, 3].min

        scores[element.path] = points
        scores[element.parent.path] += points
        scores[element.parent.parent.path] += points.to_f/2
      end

      augment_scores_by_link_weight!
    end
def score!
      mark_scorable_elements!

      scorable_elements.each do |element|
        points = 1
        points += element.text.split(',').length
        points += [element.text.length / 100, 3].min

        scores[element.path] = points
        scores[element.parent.path] += points
        scores[element.parent.parent.path] += points.to_f/2
      end

      augment_scores_by_link_weight!
    end
Scores the document elements based on an algorithm to find elements which hold page
 content.