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": "PUMPKIN BUNDT CAKE", "description": "When autumn starts and it gets closer to Halloween, I can't help but think of everything and anything to do with pumpkins... so why not make a Pumpkin Bundt Cake? I used tinned pumpkin purée for ease, but if it's near Halloween and you intend to carve your own pumpkin, scoop out the flesh (remove the seeds) and blend to create your own purée. I love the warming spices in this cake, but you can easily adapt them to whatever you prefer or have available - all ground ginger, or all cinnamon... the choice is yours!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "275ml sunflower oil/vegetable oil", "300g soft light brown sugar", "4 eggs", "275g tinned pumpkin purée", "250g self-raising flour", "2 tsp ground cinnamon", "½ tsp ground ginger", "½ tsp ground nutmeg", "¼ tsp allspice", "¼ tsp ground cloves" ] }, { "section": "Decoration", "ingredients": [ "150g icing sugar", "½ tsp ground cinnamon", "1-3 tbsp water" ] } ], "instructions": [ "Preheat the oven to 180°C/160°C fan and grease a 10-cup (2½-litre capacity) bundt tin with 2 teaspoons of oil and 2 teaspoons of flour mixed to a paste and brushed all over the inside of the tin.", "In a large bowl, add the oil, sugar and eggs and whisk to combine.", "Add the pumpkin purée and stir again.", "Finally, add the flour, cinnamon, ginger, nutmeg, allspice and cloves and carefully stir until well combined.", "Transfer the mixture to the tin and bake for 1 hour, but it may take a little longer depending on your oven temperature. When ready, the cake should come away from the edges of the tin and a cocktail stick or skewer inserted into the middle will come out clean.", "Leave the cake to cool in the tin for at least 20 minutes, before carefully turning out onto a wire rack to cool fully.", "Decoration", "In a large bowl, add the icing sugar and cinnamon and briefly mix to combine.", "Add the water 1 tablespoon at a time, mixing well until a thick liquid icing is formed.", "Transfer the cake to a serving plate and drizzle the icing over the cake." ], "author": null }
- Assistantjson
{ "data": "WWW" }