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": "Roasted Eggplant with Tamarind", "description": "Roasted eggplant is typically found in thieboudienne (tiep), the national dish of Senegal. It inspired me to create this recipe for deliciously soft eggplants.\nServe it as a starter or with rice or couscous.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "¼ cup (50 g) tamarind paste", "½ cup (160 ml) warm water", "2 large eggplants", "½ cup (120 ml) olive oil", "½ cup (45 g) coconut sugar", "1 teaspoon soy sauce", "Salt", "Black pepper" ] } ], "instructions": [ "Preheat the oven to 425°F (220°C).", "Soak the tamarind paste in warm water for 20 minutes, then mix well to dissolve it entirely.", "Strain through a fine mesh strainer, reserving the tamarind liquid.", "Halve the eggplants lengthwise, then score the flesh in a crosshatch pattern, without cutting through the skin.", "Slather in oil and generously season with salt and pepper.", "Place the eggplants on a baking sheet and roast for 30 minutes.", "While the eggplants cook, place the tamarind liquid, sugar, and soy sauce in a small saucepan and mix well.", "Bring to a boil, stirring occasionally, reduce the heat to low, and simmer until thickened, 5 minutes.", "Remove the eggplants from the oven, coat with the sauce, and return them to the oven for 15 minutes, until the eggplants are golden and tender." ], "author": null }
- Assistantjson
{ "data": "SN" }