Versions in this module Expand all Collapse all v0 v0.1.2 Jul 4, 2026 v0.1.1 Jun 25, 2026 Changes in this version + func IsSafeSegment(s string) bool + func SplitSafeSegments(s string) []segment + func SubstituteDict(s string) string + type CompressResult struct + Compressed string + Original string + Stats Stats + type Intensity int + const Full + const Lite + const Ultra + func (i Intensity) String() string + type Stats struct + BytesSaved int + BytesSavedByDict int + BytesSavedByDrops int + CompressedBytes int + CompressedSegments int + CompressedWords int + DictionaryHits int + DroppedArticles int + DroppedConjunctions int + DroppedFiller int + DroppedHedge int + Intensity Intensity + OriginalBytes int + OriginalWords int + PassThroughSegments int + PercentOff float64 + RefusedDueToSensitive bool + SensitiveKeywordsHit []string + func Compress(s string, intensity Intensity) (string, Stats)