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": "BROWN BUTTER, PECAN & CHOCOLATE CHIP COOKIES", "description": "Baking and butter go hand in hand but sometimes it's good to create a new variation. I love brown butter when it comes to cooking\ndinner, but in baking it's an absolute wonder! It may sound strange, but you melt the butter in a pan, and continue to heat it until it starts\nto go brown and create a nutty smell. Using this in a cookie creates a whole new layer of flavour that works perfectly with chocolate chips\nand pecans.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "125g unsalted butter", "175g soft light brown sugar", "1 egg (medium or large)", "1 tsp vanilla extract", "275g plain flour", "1 tbsp cornflour (optional)", "½ tsp bicarbonate of soda", "½ tsp sea salt", "150g dark chocolate chips", "150g pecan nuts, chopped" ] } ], "instructions": [ "Add the butter to a pan and melt over a medium heat.", "Keep on heating the butter until it starts to bubble, stirring often so it does not catch.", "Keep simmering until it starts to smell nutty and turns a brown colour.", "Pour the butter into a bowl, and leave it to cool to room temperature. It will set back to a softer solid.", "Add the browned butter and soft light brown sugar to a bowl and beat until creamy.", "Add the egg and vanilla extract and beat again.", "Add the plain flour, cornflour, if using, bicarbonate of soda and salt and mix until a cookie dough is formed.", "Add the chocolate chips and chopped pecan nuts and stir until evenly distributed.", "Portion the cookies into 15 balls, each about 80g.", "Chill the cookie dough balls in the fridge while you preheat the oven to 200°C/180°C fan and line two baking trays with parchment paper.", "Take the cookies out of the fridge, put onto the lined trays and bake for 10-11 minutes.", "Once baked, leave them to cool on the trays for at least 30 minutes, as they will continue to bake while cooling." ], "author": null }
- Assistant
{ "data": "WNA" }