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é.
1. 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": "Raspberry Jam Thumbprint Cookies", "description": "In this Studio Ghibli film, Arrietty and her family are tiny people who live in the nooks and crannies of a suburban home. Oftentimes, they "borrow" ingredients from their hosts. Arrietty likes to grind up cookies to use as baking flour, so I "borrowed" Arrietty's idea and used ground-up cookies in this recipe! Arrietty served these cookies to Spiller, when he helped bring her injured father home.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup (120 g) crushed digestive cookies", "½ cup (48 g) rolled oats", "2 tablespoons sugar", "½ teaspoon ground cinnamon", "2 pinches salt", "1/4 cup (60 g) unsweetened smooth applesauce", "2 tablespoons unsalted butter, melted", "5 tablespoons (100 g) raspberry jam", "Prepared hot matcha tea, for serving" ] } ], "instructions": [ "Preheat the oven to 350°F (175°C; gas mark 4). In a food processor or high-powered blender, blend the crushed cookies and oats until the cookies are turned into crumbs and most of the oats are halved in size. Add the sugar, cinnamon, and salt and pulse until combined. Add the applesauce and butter and pulse until the dough comes together.", "Line 10 muffin cups with the cupcake liners, then scoop 1½ tablespoons of dough into each cup. Push the dough tightly into the base of each cup. Make a 1½-inch (4 cm) circular indent in the center of the dough by slightly pressing with your thumb. Add 1½ teaspoons of raspberry jam in each indentation.", "Bake for 10 minutes, or until the cookies are slightly browned and hardened and the jam has thickened. (Bake for 15 minutes for extra-crisp cookies.) Remove the cookies from the tin, still in the liners, and set on a rack. Let cool for at least 15 minutes to allow the cookies to harden more. Serve with the matcha tea." ], "author": null }
- Assistant
{ "data": "WWW" }