New: src/lib/distillery-matcher.ts - normalizeDistillery(): Fuzzy matches AI responses against distilleries.json - cleanBottleName(): Removes distillery from bottle name to avoid duplication - normalizeWhiskyData(): Combined helper for both operations Example transformations: - 'ARDNAHOE DISTILLERY CO LTD' → 'Ardnahoe' - 'Laphroaig 10 Year Old' → '10 Year Old' (with distillery in separate field) Integration: - gemini-vision.ts now normalizes results after AI response - Enables consistent distillery names for enrichment cache
346 KiB
346 KiB