feat: Add Fuse.js distillery name normalization
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
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user