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": "TRIPLE CHOCOLATE MUFFINS", "description": "Sometimes in life, you just need a whole lot of chocolate. These triple chocolate muffins are the answer to everything, especially as they\nare so incredibly easy to bake. I'm utterly in love with this recipe and it's a firm favourite on the blog too. Eating one of these warm out of\nthe oven is just the best thing ever, and I wholeheartedly recommend you try it!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "115g unsalted butter or baking spread", "250g caster sugar", "2 eggs", "225g self-raising flour", "25g cocoa powder", "Pinch of salt", "125ml full-fat milk", "75g dark chocolate chips", "75g milk chocolate chips", "75g white chocolate chips" ] }, { "section": "MAKE A SOFT CENTRE", "ingredients": [ "25g spoonfuls of chocolate spread" ] } ], "instructions": [ "Preheat the oven to 190°C/170°C fan and get your muffin cases ready - I like to use tulip-style muffin cases.", "Beat the butter with the caster sugar until light and fluffy.", "Add the eggs one at a time, beating well after each addition.", "Add the self-raising flour, cocoa powder and salt to the mixture, and beat again.", "Finally, pour in the milk and beat again until just combined - try not\nto over-beat the mixture!", "Fold through all the chocolate chips, and spoon the mixture evenly into the muffin cases.", "Bake for about 25 minutes, or until they are baked through\nand springy to touch.", "Freeze 25g spoonfuls of chocolate spread for 1 hour.", "Half-fill the muffin cases with the mixture, then add a frozen chocolate spread ball.", "Cover with the remaining mixture before baking as above." ], "author": null }
- Assistantjson
{ "data": "WWW" }