Versions in this module Expand all Collapse all v0 v0.2.0 Aug 19, 2026 Changes in this version type Subtitle + Date string v0.1.0 Aug 7, 2026 Changes in this version + func Codes(s string) map[string]bool + func DetectLanguage(r io.Reader) (lang string, confidence float64, ok bool) + func F1(a, b map[string]bool) float64 + func HMS(d time.Duration) string + func Overlap(a, b map[string]bool) int + func Runtime(r io.Reader) (d time.Duration, ok bool) + func RuntimeFit(subRuntime, sceneDur time.Duration) (score float64, delta time.Duration) + func StripNoise(stem string) string + func Tokens(s string) map[string]bool + type Candidate struct + Delta time.Duration + NameSim float64 + Reasons []string + Scene SceneRef + Score float64 + type Index struct + func NewIndex(scenes []SceneRef, vocab *Vocab) *Index + func (ix *Index) Len() int + func (ix *Index) Match(sub Subtitle, maxCandidates int) Match + type Match struct + Candidates []Candidate + Subtitle Subtitle + Verdict Verdict + func (m Match) Best() *Candidate + type SceneRef struct + Date string + Duration time.Duration + HasCaption bool + ID string + Path string + Performers []string + Stem string + Studio string + Title string + type Subtitle struct + Dirs []string + Lang string + Path string + Runtime time.Duration + Size int64 + Stem string + type Verdict string + const Ambiguous + const Confirmed + const Likely + const Unmatched + type Vocab struct + func NewVocab(names []string) *Vocab + func (v *Vocab) IsCreator(tok string) bool + func (v *Vocab) Len() int + func (v *Vocab) Split(toks map[string]bool) (content, creator map[string]bool)