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": "YASSA BURGER", "description": "This burger is the ultimate comfort food. It combines the pleasure of eating with your hands, with the joy that comes from tasting all these delicious African flavors. Eating with your hands is a part of my ancestral heritage. I like to do it because it's a very natural, noble way to eat. For some dishes, like attiéké (cassava couscous), this takes a certain mastery that only comes from practice. So, let's get to it!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon olive oil", "1 red onion, minced", "Juice of lemon", "1 teaspoon coconut sugar", "½ teaspoon dried thyme", "Salt", "Black pepper", "2 tablespoons coconut oil", "1 ripe plantain, thinly sliced", "½ teaspoon paprika", "8 thick slices Sweet Bread, toasted", "4 Red Bean Cakes", "1 red bell pepper, thinly sliced", "1 avocado, peeled and sliced", "Handful of spinach sprouts" ] } ], "instructions": [ "1. Heat the olive oil in a large pot over low heat. Add the onion and cook until beginning to soften, 3 minutes. Add the lemon juice, sugar, thyme, salt, and pepper, increase the heat to medium, then cover and simmer until the onion has softened completely, 5 minutes. If the onion still isn't soft, add a splash of water and cook for a few more minutes. Stir frequently until the water evaporates.", "2. Heat the coconut oil in a frying pan, Season the plantain slices with salt and paprika, and cook them until lightly caramelized, 2 to 3 minutes per side.", "3. To assemble the burger, place a slice of toast on a plate, then top with onions, a red bean cake, plantains, red bell pepper, avocado, and spinach shoots. Finish with a slice of toast on top. Repeat to make four burgers, and serve hot." ], "author": null }
- Assistantjson
{ "data": "SN" }