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": "Glacé fruit cake", "description": "This is a very classic and moist cake, ideal for a child's teatime, though adults will love this comforting and tasty cake too. Get the children to help you make the mixture.", "subtitle": "This is a very classic and moist cake, ideal for a child's teatime.", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 vanilla pod (bean)", "zest of 1 orange", "zest of 1 lemon", "125 g/4 oz soft butter + a little extra for the tin", "125 g/4½ oz caster (superfine) sugar", "2 eggs", "150 g/5½ oz plain (all-purpose) flour + a little extra for the glacé fruits and sultanas", "5 g/4 oz baking powder", "75 g/2 oz glacé fruits", "75 g/2 oz golden sultanas" ] } ], "instructions": [ "1-The cake mixture", "Preheat the oven to 170°C (325°F: gas mark 3). Split the vanilla pod in half lengthways, then scrape out and reserve the seeds (save the pod for another use). Finely chop the orange and lemon zest and put to one side. Mix the soft butter and the sugar with a spatula. Beat the eggs very lightly with a fork, then gradually mix into the sugar and butter mixture. Finally, sift together the flour and baking powder, then add to the rest of the mixture and mix until smooth.", "2- Finishing off", "Dice the glacé fruits, if necessary, then mix with the sultanas, zests, a teaspoon of extra flour and the vanilla seeds. Stir into the cake mixture. Butter the loaf tin, fill it with the mixture and bake for 25-30 minutes. Remove from the oven, unmould from the tin while still hot and leave to cool on a wire rack. Serve in thick slices." ], "author": "" }
- Assistantjson
{ "data": "GB" }