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": "PILAU RICE", "description": "Pilau Rice is an East African staple, originating in India and brought to the region by migrating Indians. This version includes peppers, tomatoes, onion, and cashews, as well as a variety of fragrant spices.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 tablespoons canola oil", "1 teaspoon ground cumin", "1 teaspoon curry powder", "½ teaspoon ground cardamom", "½ teaspoon smoked paprika", "½ teaspoon white peppercorns", "1 cinnamon stick", "1 star anise", "1 bay leaf", "1 cayenne pepper, chopped", "1 onion, chopped", "2 garlic cloves, chopped", "1 teaspoon grated ginger", "2 tomatoes, chopped", "1 red bell pepper, chopped", "1½ cups (300g) white basmati rice", "1½ cups (360 ml) vegetable stock", "1 cup (240 ml) coconut milk", "Salt", "Black pepper", "¼ cup (100 g) cashews" ] } ], "instructions": [ "1. Heat the oil in a large pot over medium heat, add the cumin, curry powder, cardamom, paprika, and peppercorns, and stir. Add the cinnamon stick, star anise, and bay leaf, and cook until fragrant, stirring constantly, about 1 minute.", "2. Add the cayenne pepper, onion, garlic, and ginger. Cook for 1 minute, then stir in the tomatoes and bell pepper.", "3. Add the rice and cook for 2 minutes, stirring constantly, then add the vegetable stock and coconut milk, and season with salt and pepper. Bring the stock to a boil, cover (see Tip on page 130), reduce the heat to low, and simmer until the rice is tender and has absorbed all of the liquid, 20 minutes.", "4. Remove the cinnamon stick, star anise, and bay leaf from the pot. Stir in the cashews before serving." ], "author": null }
- Assistant
{ "data": "KE" }