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": "Toasted Coconut and Mango Muffins", "description": "Go on a tropical adventure with these muffins, unless you already live in the tropics, in which case stay put. Toasting the coconut really brings out its flavor, while dried mango adds little surprises of tangy sweetness. This recipe is a great introduction to white whole wheat flour, but if you don't have any or can't find it, you can use a mix of white flour and whole wheat flour.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1½ cups unsweetened shredded coconut", "1/4 cups almond milk (or your favorite nondairy milk)", "1 teaspoon apple cider vinegar", "1/4 cups white whole wheat flour or 1 cup whole wheat flour and 3/4 cup white flour", "¼ cup sugar", "1/4 cup light brown sugar", "½ teaspoon salt", "1 tablespoon baking powder", "½ teaspoon ground nutmeg", "1/4 teaspoon ground allspice", "1/3 cup canola oil", "1 teaspoon pure vanilla extract", "1 teaspoon coconut extract (optional; you can also use another teaspoon vanilla)", "3/4 cup chopped dried mango (pieces should be pea-size or thereabouts)" ] } ], "instructions": [ "Preheat the oven to 375°F.", "Lightly grease a muffin tin.", "First, toast the coconut.", "Preheat a large pan over medium-low heat.", "Pour in the coconut and, using a spatula, move it around slowly and consistently for about 4 minutes.", "The coconut should start browning almost immediately; if it doesn't then turn the heat up just a bit.", "Remove from heat when toasted (it should appear honey brown to dark chestnut in color).", "Measure milk into a measuring cup and add vinegar.", "Set aside to curdle.", "In a large bowl, mix together flour, sugar, salt, baking powder, nutmeg, and allspice.", "Create a well in the center and add the milk mixture, oil, and extracts.", "Mix together until just combined, then fold in toasted coconut and mango.", "Fill the muffin tin three-quarters of the way with batter and bake for 23 to 27 minutes, until a knife or toothpick inserted through the center comes out clean.", "Let cool a bit until you can loosen the muffins and transfer them to cooling racks to cool the rest of the way." ], "author": null }
- Assistantjson
{ "data": "WWW" }