Versions in this module Expand all Collapse all v0 v0.4.1 May 2, 2026 v0.4.0 Mar 15, 2026 Changes in this version + var TraceDFA int + func MarshalMultiLRE(re *MultiLRE) []byte + type Dict struct + func (d *Dict) Insert(w string) WordID + func (d *Dict) InsertSplit(text string) []Word + func (d *Dict) Lookup(w string) WordID + func (d *Dict) Split(text string) []Word + func (d *Dict) Words() []string + type LRE struct + func ParseLRE(d *Dict, file, s string) (*LRE, error) + func (re *LRE) Dict() *Dict + func (re *LRE) File() string + type Match struct + End int + ID int + Start int + type Matches struct + List []Match + Text string + Words []Word + type MultiLRE struct + func NewMultiLRE(list []*LRE) (_ *MultiLRE, err error) + func UnmarshalMultiLRE(data []byte) (*MultiLRE, error) + func (re *MultiLRE) Dict() *Dict + func (re *MultiLRE) Match(text string) *Matches + type SyntaxError struct + Context string + Err string + File string + Offset int + func (e *SyntaxError) Error() string + type Word struct + Hi int32 + ID WordID + Lo int32 + type WordID int32 + const AnyWord + const BadWord