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": "Halloween Chocolate Chip Cookies with Spiders", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2½ cups all-purpose flour", "1 teaspoon baking soda", "1 teaspoon salt", "½ teaspoon baking powder", "1 cup unsalted butter, at room temperature", "3/4 cup white sugar", "3/4 cup packed brown sugar", "2 large eggs eggs", "1 teaspoon vanilla extract", "2½ cups semisweet chocolate chips, divided" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C).", "Combine flour, baking soda, salt, and baking powder in a large bowl and stir with a fork to mix ingredients well.", "Combine butter, white sugar, and brown sugar in a large bowl; beat with an electric mixer until smooth and creamy. Add eggs and vanilla extract and beat until smooth and fluffy. Add in flour mixture, 1 cup at a time, and mix in with a spatula until well incorporated. Fold in 1 1/2 cups chocolate chips until well combined.", "Drop cookies onto ungreased baking sheets. Pour 1/2 cup chocolate chips into a bowl. Push about 3 to 4 chocolate chips onto each cookie, tip-side down, to make the spider bodies.", "Bake in the the preheated oven until edges are golden, 10 to 15 minutes. Cool on the baking sheet for 1 minute before removing to a wire rack.", "Melt remaining 1/2 cup chocolate in a microwave-safe glass or ceramic bowl in 15-second intervals, stirring after each melting, 1 to 3 minutes. Spoon melted chocolate into a piping bag with a small tip and draw little legs on each side of the spider bodies to create spider legs." ], "author": null }
- Assistantjson
{ "data": "WWW" }