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": "Pears in red wine", "description": "This classic dessert will be even better if you make it the day before. After a night in the fridge, the pears will be even more impregnated with the flavours of the wine and spices. Why not serve it with a blackcurrant sorbet?", "subtitle": "This classic dessert will be even better if you make it the day before.", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 bottle of good red wine", "4 ripe Williams or Passe Crassane pears", "1 lemon", "1 unwaxed orange", "125 g of caster sugar", "1 vanilla pod", "4 cm of ginger", "freshly ground white pepper" ] } ], "instructions": [ "Pour a bottle of good red wine into a saucepan, bring to a boil and flambé.", "Wash 4 ripe Williams or Passe Crassane pears, then peel them, but leave the stalk on.", "Cut them in half, remove the core and squeeze the juice of 1 lemon over as soon as they are peeled.", "Put the peelings in the flambéed red wine.", "Pare the zest from 1 unwaxed orange, then remove the skin and outer membrane and cut into slices.", "Peel and finely slice 4 cm of ginger.", "Pour 125 g of caster sugar into the flambéed red wine, add 1 vanilla pod slit open and scraped, the orange zest, the ginger and a generous twist of freshly ground white pepper.", "Bring back to the boil then lower the heat and immerse the half pears in this wonderfully fragrant wine.", "Cook gently, at a low simmer, for about 25 minutes.", "Take the saucepan off the heat and leave the fruit to rest in their cooking liquid.", "Then put them in a glass bowl.", "Filter the wine through a conical strainer and pour it over the pears.", "Keep the pears in the fridge until you are ready to serve them." ], "author": "" }
- Assistant
Pour la recette donnée, l'origine culinaire peut être déterminée par l'ingrédient principal utilisé, qui est le vin. Le vin, en particulier le vin rouge, est souvent associé à la France, et dans ce cas, les poires Williams et Passe Crassane sont également des variétés populaires en France.
Ainsi, le code ISO 3166-1 alpha-2 pour la France est "FR".
Voici donc le JSON structuré correspondant :
json{ "data": "FR" }