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é.
1. 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": "Creamy Spinach", "description": "Contrary to how I feel about kale, I enjoy a plate of spinach from time to time. I mean, if Popeye loves it, we all should. Now this recipe might make you want to take a nap, versus, I don't know, lift a car, but it's fun nonetheless. This spinach is a great side dish no matter what you serve it with, but it's particularly excellent alongside the Shrimp and Grit Quiche with Polenta Crust, the Croque Surprise, or the Lamb Shank Hash.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 tablespoons (30 mL) unsalted butter", "2 cloves garlic, minced", "2 shallots, finely diced", "1 teaspoon (5 mL) salt", "8 ounces (225 g) fresh spinach", "1/4 cup (60 mL) heavy (35%) cream" ] } ], "instructions": [ "Melt the butter in a small frying pan over medium-high heat.", "Add the garlic, shallots, and salt and sauté until translucent.", "Remove from the heat.", "Bring a pot of water to a boil.", "Add the spinach and blanch for 1 minute, or until bright green.", "Drain the spinach in a fine-mesh strainer, pressing down on the greens to ensure all excess water has been removed.", "Transfer the blanched spinach to a food processor and add the cream and the sautéed garlic and shallots.", "Pulse 4 times.", "You want it creamy, but not soupy-somewhere in the middle.", "Serve immediately." ], "author": null }
- Assistant
{ "data": "WWW" }