From a507deddbf496ec7b1768e790b235ff876155518 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 21 Apr 2026 15:06:04 -0700 Subject: [PATCH] feat(tagger): add BBQ cuisine inference signals for tag_inferrer food.com rarely tags BBQ in its own taxonomy fields, so BBQ recipes were previously untagged. Added content-derived signals (brisket, pulled pork, dry rub, regional styles) so infer_recipe_tags.py correctly tags them as cuisine:BBQ. Companion to the browser_domains.py BBQ keyword expansion. --- app/services/recipe/tag_inferrer.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/services/recipe/tag_inferrer.py b/app/services/recipe/tag_inferrer.py index 72fab54..c359a87 100644 --- a/app/services/recipe/tag_inferrer.py +++ b/app/services/recipe/tag_inferrer.py @@ -68,6 +68,15 @@ _CUISINE_SIGNALS: list[tuple[str, list[str]]] = [ ("cuisine:Cajun", ["cajun", "creole", "gumbo", "jambalaya", "andouille", "etouffee"]), ("cuisine:African", ["injera", "berbere", "jollof", "suya", "egusi", "fufu", "tagine"]), ("cuisine:Caribbean", ["jerk", "scotch bonnet", "callaloo", "ackee"]), + # BBQ detection: match on title terms and key ingredients; these rarely appear + # in food.com's own keyword/category taxonomy so we derive the tag from content. + ("cuisine:BBQ", ["brisket", "pulled pork", "spare ribs", "baby back ribs", + "baby back", "burnt ends", "pit smoked", "smoke ring", + "low and slow", "hickory", "mesquite", "liquid smoke", + "bbq brisket", "smoked brisket", "barbecue brisket", + "carolina bbq", "texas bbq", "kansas city bbq", + "memphis bbq", "smoked ribs", "smoked pulled pork", + "dry rub ribs", "wet rub ribs", "beer can chicken smoked"]), ] _DIETARY_SIGNALS: list[tuple[str, list[str]]] = [