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": "CANDY CANES", "description": "Candy canes are probably the Christmas equivalent of autumnal toffee apples, right? Would you believe that these are easy to make and even better when homemade? Trust me. Candy canes have been one of the most requested Christmas treat recipes from my readers, because you all, just like me, want to have a go at making something fun and festive. The method is similar to making the peppermint cream recipe from my first book in the sense that it is a set icing sugar and egg white dough. Use other flavours if you don't fancy peppermint, but these canes are so good and too delicious to be hung on a Christmas tree.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 egg white", "350-450g icing sugar, plus extra for dusting", "1 tsp peppermint extract", "½ tsp red food colouring" ] } ], "instructions": [ "Line a baking tray with parchment paper.", "Using a clean bowl and whisk (otherwise the egg white won't stiffen), add the egg white to the bowl and whisk until stiff peaks form.", "Add 350g of icing sugar and the peppermint extract and mix until a dough forms.", "Knead with your hands in the bowl until the dough is smooth - if it's still sticky, add the remaining 100g of icing sugar a little at a time until you reach a smooth dough.", "Divide the dough into two and colour one batch red with the food colouring.", "Divide each batch into 15 small balls (30 balls in total).", "On a work surface dusted with icing sugar, roll out one red ball and one uncoloured ball into thin sausage shapes about ½/2cm thick.", "Twist the two colours together and then turn at one end to make the hooked end of a candy cane shape.", "Repeat with the remaining balls.", "Place onto the lined baking tray and leave to harden and set overnight at room temperature." ], "author": null }
- Assistantjson
{ "data": "WWW" }