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": "Coffee Chip Muffins", "description": "Who doesn't love chocolate and coffee in the morning? These are the perfect brunch muffin, making good use of instant coffee instead of sometimes hard-to-find coffee extract.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup almond milk (or your favorite nondairy milk)", "1 heaping tablespoon instant coffee crystals", "1 teaspoon apple cider vinegar", "2 cups all-purpose flour", "½ cup sugar", "1 tablespoon baking powder", "½ teaspoon salt", "½ cup canola oil", "1 teaspoon pure vanilla extract", "½ cup chocolate chips" ] } ], "instructions": [ "Preheat the oven to 375°F.", "Lightly grease a muffin tin.", "In a large measuring cup, measure out ½ cup of the milk.", "Stir in the coffee crystals and mix to dissolve. (A few undissolved crystals are okay.)", "Stir in the rest of the milk and the vinegar and set aside.", "In a large mixing bowl, stir together the flour, sugar, baking powder, and salt.", "Make a well in the center and add the milk mixture, oil, and vanilla.", "Mix together until the batter is just moistened, being careful not to overmix.", "Fold in the chocolate chips.", "Use an ice cream scoop to drop the batter into the muffin tin, filling it about three-quarters full.", "Bake for 22 to 26 minutes, until a knife or toothpick inserted through the center of a muffin comes out clean.", "Let cool a bit until you can remove the muffins and transfer them to cooling racks to cool the rest of the way." ], "author": null }
- Assistantjson
{ "data": "WWW" }