The mutable-feeling accumulator for a scan. Holds the original text,
the running score, and per-filter score totals in match_scores.
Summary
Functions
Returns matches as a list of %{filter: module, score: float} maps,
sorted highest score first (ties keep insertion order).
Builds a new subject from raw text.
Records a match. Filter is the implementing module; score is added to both the per-filter total and the subject's running score.
Convenience: hand the subject text to a Despamilator.Subject.Text helper.
Types
Functions
Returns matches as a list of %{filter: module, score: float} maps,
sorted highest score first (ties keep insertion order).
Builds a new subject from raw text.
Records a match. Filter is the implementing module; score is added to both the per-filter total and the subject's running score.
Convenience: hand the subject text to a Despamilator.Subject.Text helper.