Versions in this module Expand all Collapse all v1 v1.10.0 Nov 4, 2026 v1.9.1 Oct 28, 2026 v1.9.0 Oct 27, 2026 Changes in this version + func Lexicon(p values.Principle, categories []string) []*regexp.Regexp + func Score(text string, patterns []*regexp.Regexp) (score float64, count int) + type Scorer struct + func NewScorer(patterns []*regexp.Regexp) *Scorer + func (s *Scorer) Count(text string) int