readability v0.8.0 Readability.Candidate.Scoring

Score html tree

Summary

Functions

Score html tree by some algorithm that check children nodes, attributes, link densities, etcs.. options -> weight_classes :: boolean, calculate weight class

Types

html_tree()
html_tree() :: tuple | list
options()
options() :: list

Functions

calc_score(html_tree, opts \\ [])
calc_score(html_tree, options) :: number

Score html tree by some algorithm that check children nodes, attributes, link densities, etcs.. options -> weight_classes :: boolean, calculate weight class

class_weight(attrs)