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": "JOLLOF RICE", "description": "For ages, Ghana and Nigeria have argued over the origins of this recipe, each claiming to make the most delicious version. In reality, it seems that the dish actually originated in Senegal!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 Roma tomatoes, chopped", "1 red bell pepper, chopped", "1 habanero chile pepper or small sweet pepper, washed and seeded", "2 tablespoons olive oil", "1 onion, chopped", "3 garlic cloves, chopped", "1 teaspoon grated ginger", "1 tablespoon curry powder", "1 teaspoon smoked paprika", "1 teaspoon dried rosemary", "1 teaspoon dried thyme", "2 bay leaves", "Salt", "Black pepper", "2 cups (400 g) brown rice", "2 cups (480 ml) vegetable stock" ] } ], "instructions": [ "Mix the tomatoes, red bell pepper, habanero, and half of the chopped onion together in a small bowl.", "Heat the oil in a large pot over medium heat, add the other half of the chopped onion, and cook until translucent, about 3 minutes.", "Add the garlic and ginger to the pot, then stir for about 30 seconds. Add the curry powder, paprika, rosemary, thyme, and bay leaves. Stir for 15 seconds, then stir in the tomato mixture. Season with salt and pepper, then cover and cook for 10 minutes.", "Add the rice and vegetable stock and stir well to incorporate. Cover (see Tip), reduce the heat to low, and cook until the rice is soft and reddish-orange in color, 40 minutes.", "Lower the heat to minimum flame and cook the rice for 10 minutes. Remove from the heat." ], "author": null }
- Assistant
{ "data": "SN" }