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": "QASHAT BIL NARGIL (COCONUT COOKIES)", "description": "The Al Saqri family in Jabal Akhdar whipped up this brittle-like coconut cookie just before we sat down to lunch, adding shreds of unsweetened coconut to a simple syrup and spreading it on a smooth marble surface to harden. By the time lunch was finished, the crumbly, sweet treats were ready to be cut and enjoyed with our coffee. Don't worry if your cookies don't completely harden; the first day they retain some chew.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ cup dried milk powder", "1½ cups unsweetened shredded coconut", "¼ cup sugar" ] } ], "instructions": [ "Lightly oil a baking sheet or line it with parchment paper.", "Mix the milk powder and coconut in a bowl.", "Place the sugar and ½ cup water in a medium saucepan.", "Turn the heat to medium-high and cook, stirring occasionally (it will begin to simmer), until slightly thickened, about 12 minutes.", "A candy thermometer should read 220°F, or to test if ready, use a spoon to drip a little of the sugar syrup into a glass of cold water. If the syrup is ready, it will coagulate into a ball or thread; if it's not ready, it will dissolve like oil.", "Remove from the heat and quickly mix in the dry ingredients until evenly coated.", "Transfer the mixture to the prepared baking sheet and flatten it out slightly.", "Using a rolling pin, roll it into a 9 by 11-inch rectangle about ¼ to ½ inch thick (you can cover it with a piece of parchment paper, if you have it, to ensure the mixture doesn't stick to your rolling pin).", "Let set until cool, at least 1 hour or up to 8 hours, and then cut into 2½-inch diamond-shaped pieces.", "Store at room temperature, wrapped in aluminum foil.", "They will retain some chew for the first day or two and then harden into a crunchier confection.", "They are best eaten within a week." ], "author": null }
- Assistantjson
{ "data": "WAS" }