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": "Atassi", "description": "Atassi is a very popular specialty of Benin and Togo. It's called atassi in the south in the Fongbe language, watché in the north in the Dendi language, and ayimonlou in Togo.", "subtitle": "Beninese Rice and Beans", "ingredients": [ { "section": "For the recipe", "ingredients": [ "9 ounces (255 g) black-eyed peas or red beans", "3 cups (600 g) white rice", "1 teaspoon ground cumin", "½ teaspoon ground coriander", "½ teaspoon paprika", "1½ tablespoons baking soda", "Salt" ] } ], "instructions": [ "Soak the black-eyed peas in 3 cups (720 ml) water for at least 8 hours.", "Rinse and drain, then place them in a large pot with 5 cups (1.2 L) water.", "Bring the water to a boil, cover the pot, and cook the beans over medium heat until tender, 20 minutes.", "Add the rice, cumin, paprika, coriander, and salt to the pot.", "Stir well, add the baking soda, and stir again.", "Cook over medium heat for 5 minutes, then reduce the heat to low.", "Cook until the rice is tender, 20 minutes (see Tip on page 130).", "Stir regularly, and don't hesitate to add a splash of water if the mixture starts to stick." ], "author": "" }
- Assistantjson
{ "data": "BJ" }