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": "Sweet Potato and Kidney Bean Stew", "description": "This stew can be eaten on its own or with rice, particularly Jollof Rice. It can also be enjoyed as leftovers, when the flavor of the spices has really developed. In some ways, that's even better! It has become one of my favorite dishes.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon coconut oil", "1 red onion, chopped", "1 large red bell pepper, diced", "4 garlic cloves, minced", "2 teaspoons ground coriander", "2 teaspoons ground cumin", "2 teaspoons smoked paprika", "1 teaspoon paprika or ¼ teaspoon cayenne", "4 teaspoon ground allspice", "Salt", "Black pepper", "2 large sweet potatoes, peeled and cut into 1-inch (2.5 cm) cubes", "Two 15-ounce (411 g) cans red kidney beans", "One 28-ounce (794 g) can crushed tomatoes", "1 tablespoon tomato paste", "2 teaspoons coconut sugar", "1 cup (240 ml) vegetable stock", "½ bunch cilantro, chopped", "1 scallion, chopped" ] } ], "instructions": [ "1. Heat the oil in a pot over medium heat. Add the onion and cook until translucent, stirring frequently, 5 minutes.", "2. Add the bell pepper, garlic, coriander, cumin, smoked paprika, paprika, and allspice. Add salt and pepper to taste, then stir and cook until the vegetables are softened, 5 minutes. If the mixture begins to stick to the bottom of the pot, add a splash of water.", "3. Add the sweet potatoes. Stir well, then add the beans, tomatoes, tomato paste, and sugar. Add the vegetable stock and stir well to combine. Reduce the heat to low, cover, and simmer until the potatoes are soft and the vegetable stock is reduced, 20 minutes. Top with cilantro and scallion before serving." ], "author": "" }
- Assistantjson
{ "data": "WAF" }