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": "Pumpkin Spice Cupcakes", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "24 cups all-purpose flour", "1 teaspoon ground cinnamon", "½ teaspoon ground nutmeg", "½ teaspoon ground ginger", "½ teaspoon ground cloves", "½ teaspoon ground allspice", "½ teaspoon salt", "1 tablespoon baking powder", "½ teaspoon baking soda", "½ cup butter, softened", "1 cup white sugar", "½ cup brown sugar", "2 large eggs eggs, room temperature", "3/4 cup milk", "1 cup pumpkin puree" ] }, { "section": "Cinnamon Cream Cheese Frosting", "ingredients": [ "1 (8 ounce) package cream cheese, softened", "1/4 cup butter, softened", "3 cups confectioners' sugar", "1 teaspoon vanilla extract", "1 teaspoon ground cinnamon" ] } ], "instructions": [ "Preheat an oven to 375 degrees F (190 degrees C). Grease 24 muffin cups, or line with paper muffin liners. Sift together the flour, 1 teaspoon cinnamon, nutmeg, ginger, clove, allspice, salt, baking powder, and baking soda; set aside.", "Beat 1/2 cup of butter, the white sugar, and brown sugar with an electric mixer in a large bowl until light and fluffy. The mixture should be noticeably lighter in color. Add the room-temperature eggs one at a time, allowing each egg to blend into the butter mixture before adding the next. Stir in the milk and pumpkin puree after the last egg. Stir in the flour mixture, mixing until just incorporated. Pour the batter into the prepared muffin cups.", "Bake in the preheated oven until golden and the tops spring back when lightly pressed, about 25 minutes. Cool in the pans for 5 minutes before removing to cool completely on a wire rack.", "While the cupcakes are cooling, make the frosting by beating the cream cheese and 1/4 butter with an electric mixer in a bowl until smooth. Beat in the confectioners' sugar a little at a time until incorporated. Add the vanilla extract and 1 teaspoon ground cinnamon; beat until fluffy. Once the cupcakes are cool, frost with the cream cheese icing." ], "author": null }
- Assistant
{ "data": "WNA" }