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": "Oatmeal Raisin Cookies", "description": "The texture for these is lovely and soft, but the outside is quite chewy - and that's the best thing ever. The raisins give a softer texture, just like you would get with chocolate chips. These cookies are lightly spiced with ground cinnamon for a warming flavour, and are genuinely delicious.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "125g unsalted butter", "100g soft light brown sugar", "75g white granulated sugar", "1 egg (medium or large)", "1 tsp vanilla extract", "150g plain flour", "150g rolled oats", "1 tsp baking powder", "½ tsp bicarbonate of soda", "1 tsp ground cinnamon", "½ tsp sea salt", "200g raisins" ] } ], "instructions": [ "Put the butter and both sugars in a bowl and beat together until creamy.", "Add the egg and vanilla extract and beat again.", "Add the plain flour, rolled oats, baking powder, bicarbonate of soda, ground cinnamon and sea salt and mix until a cookie dough is formed.", "Mix in the raisins until evenly distributed.", "Portion the dough out into 10 balls - they should weigh about 85g each. Don't roll the balls too tightly as this can prevent the cookies spreading.", "Once rolled, put the balls into the freezer for at least 30 minutes, or in the fridge for an hour or so.", "While the cookie dough is chilling, preheat the oven to 200°C/180°C fan and line two baking trays with parchment paper.", "Take your cookies out of the freezer or fridge and put onto the lined trays (I do five cookies per tray).", "Bake the cookies for 10-12 minutes.", "Once baked, leave the cookies to cool on the trays for at least 30 minutes as they will continue to bake while cooling.", "You can reheat the cookies in the microwave for 20 seconds, or the oven for 2-3 minutes to serve warm." ], "author": null }
- Assistantjson
{ "data": "WNA" }