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": "Ghanaian Banana Purée", "description": "I've included this recipe as a tribute to my dad, who comes from Akan in Ghana. Etor (or otor) is an important cultural meal in Ghana. It has spiritual significance and is served at almost all large Ghanaian celebrations. It's often served with hard-boiled eggs and peanuts, and sometimes with pears or avocados.", "subtitle": "Etor", "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 ripe plantains, peeled and sliced", "2 tablespoons canola oil", "1 yellow onion, minced", "4 shallots, chopped", "1 red habanero chile pepper or small sweet pepper, chopped", "1/4 cup (65 g) peanut butter", "½ cup (50 g) peanuts, plus more for serving", "1 avocado, peeled and sliced", "1 scallion, chopped", "Salt" ] } ], "instructions": [ "Place the plantain slices in a large pot and cover them with water.", "Bring to a boil and let cook until soft, 10 minutes.", "Drain them, put them in a bowl, and mash with a potato masher or a mortar and pestle.", "Set aside.", "Heat the oil in a frying pan over medium heat, then add half of the minced onion and cook until translucent, 3 minutes.", "Reserve.", "Mash the rest of the minced onion, the shallots, and the habanero with a mortar and pestle or in a food processor to form a smooth paste.", "Add the smooth vegetable paste to the plantains and mix well, then stir in the peanut butter and peanuts.", "Mash again, leaving some peanuts whole for texture.", "Add salt to taste.", "Form the mixture into a ball.", "Put on a serving plate, and place the reserved sautéed onion on top.", "Place the sliced avocado on the side and top with chopped scallion and peanuts.", "Enjoy!" ], "author": "" }
- Assistantjson
{ "data": "GH" }