Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2026 Changes in this version + type Automaton struct + func New[C Character, ID Identifier](dict iter.Seq2[ID, []byte], opts ...Option[C]) (Automaton[C, ID], error) + func (a *Automaton[C, ID]) Matches(typ MatchType, text []byte) iter.Seq2[Match[ID], error] + type Character interface + type EncodingError struct + Character C + Index int + func (err *EncodingError[C]) Error() string + type Identifier interface + type InvalidMatchTypeError MatchType + func (err InvalidMatchTypeError) Error() string + type Match struct + EndIndex int + StartIndex int + WordID ID + type MatchType int + const MatchTypeLeftmostLongest + const MatchTypeOverlapping + type Option func(*options[C]) + func WithASCIIValidation[C Character]() Option[C] + func WithFastByteLookup[C Character]() Option[C] + func WithMaxChars[C Character](n int) Option[C] + func WithMinChars[C Character](n int) Option[C] + func WithNormalizeFunc[C Character](fn func(c C) C) Option[C]