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": "SAUTÉED SPINACH AND MUSHROOMS WITH PLANTAINS", "description": "Dishes made with leafy greens are very popular in sub-Saharan Africa, particularly in South and Central Africa. Any leafy green will do-such as taro,\ncassava, sorrel, or sweet potato leaves-but here I opted for spinach leaves, since they're easy to find in most parts of the world.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 tablespoons vegetable oil", "1 onion, chopped", "4 tomatoes, diced", "8 ounces (225 g) button mushrooms, chopped", "3½ pounds (1.5 kg) spinach", "4 ripe, firm plantains, peeled and cut into large chunks", "1 vegetable stock cube, crumbled", "2 teaspoons garlic powder", "Salt", "Black pepper" ] } ], "instructions": [ "1. Heat the oil in a large frying pan over medium heat. Add the onion and cook until translucent and lightly browned,\nabout 5 minutes. Stir in the tomatoes and cook, stirring regularly, for about 5 minutes.", "2. Add the mushrooms and stir to combine. Add the spinach gradually, stirring to wilt, then stir in the stock cube, garlic\npowder, salt, and pepper. Bring to a simmer, cover, and cook, stirring occasionally, until thickened, for about 10\nminutes. If the mixture sticks to the pan, stir in a splash of water.", "3. Meanwhile, place the plantains in a large pot, cover with salted water, and bring to a boil. Cook until easily pierced\nwith a fork, about 15 minutes.", "4. Serve the spinach and mushrooms along with the plantains." ], "author": null }
- Assistantjson
{ "data": "WAF" }