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": "Carrot Cupcakes with White Chocolate Cream Cheese Icing", "description": null, "subtitle": null, "ingredients": [ { "section": "Cream Cheese Icing", "ingredients": [ "2 ounces white chocolate", "1 (8 ounce) package cream cheese, softened", "½ cup unsalted butter, softened", "1 teaspoon vanilla extract", "½ teaspoon orange extract", "4 cups confectioners' sugar", "2 tablespoons heavy cream" ] }, { "section": "Carrot Cake", "ingredients": [ "2 large eggs eggs, lightly beaten", "1½ cups white sugar", "½ cup brown sugar", "½ cup vegetable oil", "1 teaspoon vanilla extract", "2 cups shredded carrots", "½ cup crushed pineapple", "1 ½ cups all-purpose flour", "1/4 teaspoons baking soda", "½ teaspoon salt", "1½ teaspoons ground cinnamon", "½ teaspoon ground nutmeg", "1/4 teaspoon ground ginger", "1 cup chopped walnuts" ] } ], "instructions": [ "Step 1\nPreheat oven to 350 degrees F (175 degrees C). Lightly grease 12 muffin cups.", "Step 2\nIn small saucepan, melt white chocolate over low heat. Stir until smooth, and allow to cool to room temperature.", "Step 3\nIn a bowl, beat together the cream cheese and butter until smooth. Mix in white chocolate, 1 teaspoon vanilla, and orange extract. Gradually beat in the confectioners' sugar until the mixture is fluffy. Mix in heavy cream.", "Step 4\nBeat together the eggs, white sugar, and brown sugar in a bowl, and mix in the oil and vanilla. Fold in carrots and pineapple. In a separate bowl, mix the flour, baking soda, salt, cinnamon, nutmeg, and ginger. Mix flour mixture into the carrot mixture until evenly moist. Fold in 1/2 cup walnuts. Transfer to the prepared muffin cups.", "Step 5\nBake 25 minutes in the preheated oven, or until a toothpick inserted in the center of a muffin comes out clean. Cool completely on wire racks before topping with the icing and sprinkling with remaining walnuts." ], "author": null }
- Assistant
{ "data": "WNA" }