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": "Vermicelli Rice", "description": "Most stews and casseroles in the Palestinian kitchen are served alongside vermicelli rice. Rumor has it that if a woman used vermicelli it was because she was not a good cook as it was a surefire way to ensure the rice grains did not clump together. Truth is, it simply tastes better and richer this way. The proportion of rice to vermicelli noodles is discretionary; I normally do one part vermicelli to four parts rice, but you could easily double or halve that. As for the way I cook the rice, it is a trick I learned while living in France it requires less work and allows the rice to steam, creating perfectly cooked and fluffy rice every time.", "subtitle": "رز بشعريه", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups (14 oz/400 g) rice (jasmine or short grain)", "2 tablespoons olive oil", "1 tablespoon butter or ghee", "3½ oz/100 g vermicelli noodles, broken into 1-2-inch/3-5-cm lengths", "1 teaspoon salt" ] } ], "instructions": [ "Rinse the rice under running water until the water runs clear.", "Soak for 15-30 minutes, then drain and set aside.", "Melt the oil and butter or ghee in a pan over medium heat, add the vermicelli noodles, and stir continuously until the noodles are a golden brown color, about 5 minutes.", "Add the drained rice and toss to fully coat in the oil.", "Pour 2½ cups (18 fl oz/550 ml) water into the pan, add the salt and bring to a boil.", "Boil for 2-3 minutes, give it one more stir, and then place a dish towel over the pan, close the lid tightly, and remove from the heat.", "Let it sit for 10-15 minutes.", "Remove the lid, fluff with a fork, and serve." ], "author": "" }
- Assistant
{ "data": "PS" }