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": "Tomato Rosemary Scones", "description": null, "subtitle": "fragrant savory scone that's a pretty orange color and flecked with fresh rosemary. They are sure to class up the joint. I love the olive-y notes from the olive oil, but if you're a cheap-skate, use canola oil.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "3 cups all-purpose flour", "2 tablespoons baking powder", "¼ cup sugar", "½ teaspoon salt", "½ teaspoon ground black pepper", "1/3 cup olive oil", "1 fourteen-ounce can tomato sauce (about 1½ cups)", "1 teaspoon apple cider vinegar", "2 tablespoons fresh chopped rosemary (about 4 sprigs worth)" ] } ], "instructions": [ "Preheat the oven to 400°F. Lightly grease a baking sheet.", "In a large mixing bowl, combine the flour, baking powder, sugar, salt, and pepper.", "Measure the olive oil into a large measuring cup (3 cups or larger) and whisk in the tomato sauce, vinegar, and rosemary. You can mix it all directly in the measuring cup, so you don't have to dirty up another dish.", "Make a well in the center of the flour and add the wet ingredients. Gently mix, using a wooden spoon. Once the batter is loosely holding together, lightly flour a clean work surface and turn your dough onto it. Gently knead until a soft dough forms; it's important not to overmix it or it will become gummy. (To give you an idea of what it should look like, some patches of flour are great.)", "If the dough seems sticky, add a little flour as you knead, until it's easier to work with.", "Divide dough in two and form each section into a 6-inch disk. Slice each disk into six pieces, like a pizza pie. (To do this, cut in half and then cut each half into thirds.) Place scones on a baking sheet and bake for 14 to 16 minutes; the tops should be firm.", "Remove the scones from the oven and let cool a bit on a plate or cooling rack. Serve either warm or at room temperature." ], "author": null }
- Assistantjson
{ "data": "WEU" }