MCPcopy
hub / github.com/autobrr/qui / NormalizeForMatching

Function NormalizeForMatching

pkg/stringutils/unicode.go:149–151  ·  view source on GitHub ↗

NormalizeForMatching applies cached full normalization for cross-seed matching: - Unicode normalization (removes diacritics, decomposes ligatures) - Lowercase - Strip apostrophes (including Unicode variants) - Strip colons - Convert commas to spaces - Convert ampersand to "and" - Convert hyphens to

(s string)

Source from the content-addressed store, hash-verified

147// - "Spider-Man" → "spider man"
148// - "His & Hers" → "his and hers"
149func NormalizeForMatching(s string) string {
150 return matchingNormalizer.Normalize(s)
151}

Callers 9

normalizeFileNameFunction · 0.92
normalizedTitleIdentityFunction · 0.92
parseTVEpisodeKeyFunction · 0.92
addNormalizedTitleFunction · 0.92
getMatchTypeFromTitleMethod · 0.92
TestNormalizeForMatchingFunction · 0.92
torrentEffectiveNameFunction · 0.92
TestNormalizeForMatchingFunction · 0.85

Calls 1

NormalizeMethod · 0.45

Tested by 3

TestNormalizeForMatchingFunction · 0.74
TestNormalizeForMatchingFunction · 0.68