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": "Honeycomb", "description": "Honeycomb is something that probably comes to mind when you think of bees, or honey, but it's such a delicious sweet treat. It's so simple to make, and looks like a science experiment when you are creating it. Three ingredients create something that is perfect to flavour so many bakes with ... cakes, cheesecakes, cupcakes, or more!", "subtitle": null, "ingredients": [ { "section": "HONEYCOMB", "ingredients": [ "175g caster sugar", "100g golden syrup", "2 tsp bicarbonate of soda" ] } ], "instructions": [ "Line a large, deep baking tray with parchment paper - I use one that is 23 x 33cm.", "Pour the caster sugar and golden syrup into a large pan and place over a low-medium heat, stirring until the sugar has dissolved and the texture turns gooey.", "Turn the heat up to medium and simmer until the mixture turns a golden brown colour.", "Remove from the heat and immediately add the bicarbonate of soda (don't be tempted to use baking powder instead - it won't work!).", "Whisk it in straight away and watch it rise and bubble in the pan. The less you whisk the better.", "Pour into the tray and leave it to set and cool.", "Once set, break into pieces, and enjoy." ], "author": null }
- Assistantjson
{ "data": "WWW" }