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": "Pumpkin Cookies with Cream Cheese Frosting", "description": "", "subtitle": "The World's Best!", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups all-purpose flour", "1 teaspoon baking powder", "1 teaspoon ground cinnamon", "½ teaspoon baking soda", "½ teaspoon ground nutmeg", "½ teaspoon ground ginger", "1 cup butter", "3/4 cup white sugar", "3/4 cup brown sugar", "2 teaspoons vanilla extract", "1 egg", "1 (15 ounce) can pumpkin puree", "1 (3 ounce) package cream cheese, softened", "1/4 cup butter, softened", "1 teaspoon vanilla extract", "2 cups confectioners' sugar" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C). Lightly grease baking sheets.", "Whisk flour, baking powder, cinnamon, baking soda, nutmeg, and ginger together in a bowl. Beat 1 cup butter, white\nsugar, brown sugar, 2 teaspoons vanilla extract, and egg with an electric mixer in a separate large bowl, beating until\nmixture is smooth. Beat in pumpkin puree. Gradually stir dry ingredients into pumpkin mixture. Batter will be moist.", "Spoon batter by teaspoonfuls about 2 inches apart onto prepared baking sheets.", "Bake in the preheated oven until cookies are lightly browned, 10 to 12 minutes. Let cookies cool for about 5 minutes on\nsheets before removing to finish cooling on waxed paper.", "Beat cream cheese, 1/4 cup butter, and 1 teaspoon vanilla extract in a bowl with an electric mixer until soft and creamy.\nBeat in confectioners' sugar, about 1/2 cup at a time, until frosting is smooth and spreadable. Frost cooled cookies with\ncream cheese frosting." ], "author": "" }
- Assistantjson
{ "data": "WNA" }