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": "Halloween Fondant Ghost Cupcakes", "description": null, "subtitle": null, "ingredients": [ { "section": "Ingredients", "ingredients": [ "1 cup all-purpose flour", "2 tablespoons all-purpose flour", "½ cup unsweetened cocoa powder", "1 teaspoon baking soda", "1 teaspoon salt", "1 cup white sugar", "½ cup butter", "1 egg", "1 teaspoon vanilla extract", "1 cup milk" ] }, { "section": "Decorating", "ingredients": [ "1 (16 ounce) package vanilla frosting", "6 eaches large marshmallows, cut in half crosswise", "2 tablespoons confectioners' sugar, or as needed", "8 ounces ready-to-use white fondant", "12 eaches raisins, halved" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C). Grease a 12-cup muffin tin or line cups with paper liners.", "Sift 1 cup plus 2 tablespoons flour, cocoa powder, baking soda, and salt together in a bowl.", "Combine sugar and butter in a large bowl; beat with an electric mixer until light and fluffy. Beat in egg and vanilla extract.", "Mix in flour mixture alternately with milk. Beat until batter is just blended.", "Bake in the preheated oven until tops spring back when lightly pressed and a toothpick inserted into the center comes out clean, 16 to 20 minutes. Remove from oven and cool on a wire rack for 15 minutes. Remove cupcakes from tin and cool completely, about 2 hours.", "Frost each cupcake with a thin layer of white vanilla frosting. Place 1 marshmallow half, cut-side up, in the center of each cupcake.", "Dust a work surface with confectioners' sugar. Pinch off walnut-sized pieces of white fondant; roll into thin circles that are slightly bigger than the cupcakes. Drape over the marshmallows so they look like ghosts. Poke 2 holes near the top for the eyes. Stuff 1 raisin half into each hole." ], "author": null }
- Assistant
{ "data": "WNA" }