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 Penuche Frosting", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup shortening", "½ cup packed brown sugar", "½ cup white sugar", "1 cup pumpkin puree", "1 egg", "1 teaspoon vanilla extract", "2 cups all-purpose flour", "1 teaspoon baking soda", "1 teaspoon baking powder", "1 teaspoon ground cinnamon", "½ teaspoon salt", "1 cup chopped walnuts", "3 tablespoons butter", "½ cup packed brown sugar", "1/4 cup milk", "2 cups confectioners' sugar" ] } ], "instructions": [ "Preheat the oven to 350 degrees F (175 degrees C). Grease cookie sheets.", "In a large bowl, cream together shortening, 1/2 cup brown sugar, and white sugar. Mix in pumpkin, egg, and vanilla. Sift together flour, baking soda, baking powder, cinnamon, and salt; mix into the creamed mixture. Stir in walnuts. Drop dough by heaping spoonfuls onto the prepared baking sheets.", "Bake for 10 to 12 minutes in the preheated oven. Cool on wire racks.", "In a small saucepan over medium heat, combine the 3 tablespoons butter and 1/2 cup brown sugar. Bring to a boil; cook and stir for 1 minute, or until slightly thickened. Cool slightly, then stir in the milk, and beat until smooth. Gradually stir in 2 cups confectioners' sugar until frosting has reached desired consistency. Spread on cooled cookies." ], "author": null }
- Assistantjson
{ "data": "WNA" }