Spaces:
Sleeping
Sleeping
Commit History
-
categorize: stop matching standalone "kjoler" as dress
The dress rule used `kjole` as a substring to catch Norwegian compounds like midikjole/chiffonkjole, but it also matched `kjoler` — which Boozt and NA-KD use as a flat section header containing coats, jumpsuits, skirts, and other non-dresses. Replace with two precise patterns: \b\w*kjole\b — singular forms incl. standalone "kjole" \b\w+kjoler\b — compound plurals only (no standalone "kjoler") Re-categorized the cloned DB: 158 rows shift from dress to unknown. All 158 had category="kjoler" with no garment word in the (often truncated) product name, so unknown is the honest bucket. Outfit composer's PAIRING_RULES never request "unknown", so these stop appearing as wrong-bucket complements.930ed2b
-
add canonical_category mapping for outfit composition
- taste/categorize.py: rule-based normalizer mapping raw store category + product name → {top, bottom, dress, outerwear, shoes, bag, accessory, intimates, swimwear, unknown} - handles 4 taxonomies (Boozt enums, COS paths, Norwegian/Swedish compounds like midikjole, håndveske, ryggsekk) - store: new canonical_category column, computed in upsert - 99.45% coverage on the live catalog (10,379 / 10,436)3ef384e