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": "SALTED CARAMEL-STUFFED NYC COOKIES", "description": "When thinking of cookies, you may think crunchy, or you may think gooey and soft. But do you think a gooey soft centre of caramel?\nWell, you absolutely should! These cookies have a molten caramel centre that is absolutely incredible, along with a salted cookie dough.", "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", "300g plain flour", "1½ tsp baking powder", "½ tsp bicarbonate of soda", "1 tsp sea salt", "250g milk chocolate chips or chunks", "8-16 soft caramel sweets" ] } ], "instructions": [ "Beat the butter and soft light brown sugar together until creamy.", "Add the egg and vanilla extract and beat again.", "Add the plain flour, baking powder, bicarbonate of soda and sea salt and combine until a cookie dough is formed, then add the chocolate chips or chunks and mix until they are evenly distributed.", "Portion your dough out into eight balls - each should weigh about 110g.", "Once rolled into balls, flatten slightly and put 1 or 2 soft caramels in the middle, then wrap the cookie dough around the caramels and re-roll into balls.", "Put 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 2 baking trays with parchment paper.", "Take your cookies out of the freezer or fridge and put onto the lined trays (I do four cookies per tray) and bake for 12-14 minutes.", "Once baked, leave the cookies to cool on the trays for at least 30 minutes as they will continue to bake while cooling." ], "author": null }
- Assistantjson
{ "data": "WNA" }