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é.
code1. 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": "SCONES", "description": "Scones are one of those things that I always crave and want all of a sudden, especially in the middle of the afternoon. It fits, as usually they are served for afternoon tea, with clotted cream and jam. Whether you put jam first or cream first, they are utterly delicious and are a firm favourite on my blog. There are so many variations of scones, but this classic version is just delightful!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "350g self-raising flour, plus extra for dusting", "100g chilled unsalted butter, cubed", "1 tsp baking powder", "Pinch of salt", "50g caster sugar", "200ml buttermilk", "1 tsp vanilla extract", "1 egg, beaten, for glazing" ] } ], "instructions": [ "Preheat the oven to 220°C/200°C fan and place a baking tray lined with parchment paper into the oven to preheat.", "Tip the self-raising flour, butter, baking powder and salt into a food processor and pulse until the mixture resembles breadcrumbs. Alternatively, you can rub the mixture together with your fingertips to get the breadcrumb texture.", "Pour the mixture into a large bowl and stir in the caster sugar.", "Add the buttermilk and vanilla extract, stir to combine and then knead slightly to bring together.", "Sprinkle some extra flour onto a work surface and turn the dough out onto it.", "Gently roll it out, or press it down until it is about 4cm thick.", "Using a 5cm cutter, cut out the scones - you will have to re-roll the mixture a couple of times to get them all out of the mix.", "Take the tray out of the oven, and arrange the scones on it.", "Brush the top of the scones with the beaten egg and bake for 10-12 minutes.", "Leave to cool for about 20 minutes before enjoying warm." ], "author": null }
- Assistantjson
{ "data": "GB" }