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": "Midnight Moon Cake", "description": null, "subtitle": "Yield: 1-9 inch round cake", "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ cup shortening", "1/4 cups white sugar", "2 large eggs eggs", "1 cup hot water", "½ cup unsweetened cocoa powder", "1 ½ cups sifted all-purpose flour", "½ teaspoon salt", "1 teaspoon baking soda", "1 teaspoon baking powder", "1 teaspoon vanilla extract", "1 ½ cups confectioners' sugar", "1 teaspoon lemon zest", "2 fluid ounces lemon juice" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C). Grease and line with parchment paper one 9 inch round cake pan.", "Cream shortening, add white sugar gradually and cream until fluffy. Blend in the well beaten eggs.", "In a separate bowl, slowly add hot water to cocoa and mix until smooth, dissolving cocoa completely.", "In a third bowl, sift together the flour, salt, baking soda, and baking powder; add to creamed mixture alternately with the cocoa mixture. Blend in vanilla. Pour batter into one 9 inch round pan.", "Bake at 350 degrees F (175 degrees C) for 30 to 35 minutes or until cake tester comes out clean. Let cake cool then ice with Lemon Icing.", "To Make Icing: Combine confectioner's sugar with enough lemon juice to make the icing spreadable without being runny or stiff (about 1/4 cup). Stir in the grated zest. Pour icing over top of cake. See the full moon." ], "author": null }
- Assistantjson
{ "data": "WWW" }