class AlgoliaHTMLExtractor

def heading_weight(heading_level)

100 for top level, then -10 per heading
Get a relative numeric value of the importance of the heading
#
def heading_weight(heading_level)
  weight = 100
  return weight if heading_level.nil?
  weight - ((heading_level + 1) * 10)
end