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": "Dianne's Pumpkin Cookie Cups", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups all-purpose flour", "1½ teaspoons baking powder", "1/4 teaspoon ground nutmeg", "½ teaspoon salt", "½ cup unsalted butter, softened", "1 cup white sugar", "1 egg", "2 tablespoons milk", "1 (3 ounce) package cream cheese, softened", "1 cup confectioners' sugar, divided", "½ cup pumpkin puree", "234 cups confectioners' sugar", "1 ½ teaspoons ground cinnamon", "1/4 teaspoon ground nutmeg", "1/4 teaspoon ground ginger", "1 pinch ground cloves" ] } ], "instructions": [ "Step 1\nPreheat oven to 400 degrees F (200 degrees C). Grease 32 miniature muffin cups.", "Step 2\nSift flour, baking powder, salt, and 1/4 teaspoon nutmeg in a bowl. In a separate large mixing bowl, cream unsalted butter with sugar with an electric mixer until smooth and workable; beat in egg and milk. Set the mixer to low speed and and gradually beat in flour mixture, beating just until the dough comes together.", "Step 3\nPinch off dough by tablespoon, roll into a ball, and place balls into the prepared mini muffin cups.", "Step 4\nBake in the preheated oven until edges start to turn golden brown, 8 to 10 minutes. Remove from oven and let stand for 1 minute. Use the back of a rounded teaspoon measure to press a small depression into the top of each cookie. Let the cookies cool for 5 minutes in pan before removing to finish cooling on a rack. It helps to give the cookies a little twist as you lift them out.", "Step 5\nBeat cream cheese with 1 cup confectioners' sugar in a bowl with an electric mixer until smooth. Slowly beat in pumpkin puree until thoroughly combined. Beat in remaining 2 3/4 cups confectioners' sugar, a little at a time. Stir in cinnamon, 1/4 teaspoon nutmeg, 1/4 teaspoon ginger, and a pinch of cloves. Spoon or pipe the pumpkin mixture into each cookie cup." ], "author": "Dianne" }
- Assistantjson
{ "data": "WNA" }