Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un code correspondant dans un format JSON structuré.
1. Recherche d’un pays mentionné dans la recette et extraction de son code ISO 3166-1 alpha-2. 2. Détermination de l’origine culinaire du pays si aucun pays n'est explicitement mentionné. 3. Identification d’un continent si aucun pays ne peut être déterminé. 4. Retour du code WWW si l’origine ne peut être définie. Return Format Renvoies un objet JSON structuré comme suit : json { "data": "<code>" } - Si un pays est mentionné, utilise son code ISO 3166-1 alpha-2 (ex. : FR pour la France). - Si aucun pays n'est trouvé, renvoie un code de continent parmi : WAF (Afrique) WAS (Asie) WEU (Europe) WNA (Amérique du Nord) WSA (Amérique du Sud) WOC (Océanie) - Si aucune information ne permet de déterminer une origine, renvoie WWW. Warnings - Respecte l’ordre de priorité : pays → continent → code WWW. - Le code ISO 3166-1 alpha-2 doit être exact et valide si un pays est identifié. - Le format du JSON doit être strictement respecté et bien formatté. - Ne fais aucune supposition infondée sur l’origine de la recette. Context Dump Données de la recette fournies : json {"title": "Leftover Roast Pork Sandwiches", "description": "", "subtitle": "", "ingredients": [ { "section": "The Sunday Roast Pork Sandwich", "ingredients": [ "leftover roast pork", "roast potatoes", "crackling", "roasting juices", "bread", "apple sauce" ] }, { "section": "The pork crackling sandwich", "ingredients": [ "Thin slices of roast pork", "shredded crackling", "a smear of apple sauce" ] }, { "section": "The pork rib sandwich", "ingredients": [ "Slice the meat from last night's barbecue ribs", "mayonnaise", "barbecue sauce", "soft, good bread - ciabatta or a bap", "shredded carrot or some chopped apple", "tufts of watercress" ] }, { "section": "Apple pork roll", "ingredients": [ "sweet apple", "juices, fat and interesting bits from the roasting tin", "a dash of cider or a little Marsala", "thinly sliced cold pork", "a roll" ] } ], "instructions": [ "The Sunday Roast Pork Sandwich", "Slice the leftover pork very finely and salt it generously.", "Cut up the leftover roast potatoes and warm them in the juices from the roasting tin.", "Spread the bread - a panini would be spot on too - with apple sauce or mayonnaise.", "Add the hot roast potatoes, the slices of pork, a bit of crackling if you have it and then spoon over the warm roasting juices.", "The pork crackling sandwich", "Roast pork, cut as thick as a pound coin.", "A russet apple, sliced but not peeled.", "Gravy.", "Wholemeal bread, untoasted.", "The pork rib sandwich", "Slice the meat from last night's barbecue ribs.", "You will probably get in a sticky mess.", "Cut the meat into thin shreds then stir into mayonnaise, together with a couple of tablespoons of the barbecue sauce, tasting as you go.", "Pile a piece of soft, good bread - ciabatta or a bap - with a little shredded carrot or some chopped apple, some tufts of watercress, then pile on top of the pork.", "Apple pork roll", "Finely chop a sweet apple, removing the core as you go.", "Warm the juices, fat and interesting bits from the roasting tin, then stir in the chopped apple, a dash of cider if needs be, or perhaps a little Marsala.", "Briefly add thinly sliced cold pork then stuff into a roll, letting the juices soak through the bread." ], "author": "" }
- Assistant
{ "data": "GB" }