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": "Cauliflower Fritters", "description": "When I make these fritters, I'm reminded of my great-aunt frying them at her kerosene stove many years ago as we all waited around a straw floor mat lined with plates of food. Even in today's busy family life, I still adore these fritters for a weekend brunch with a dollop of labaneh and Palestinian Salad (page 104).", "subtitle": "عجة قرنبيط", "ingredients": [ { "section": "For the recipe", "ingredients": [ "11 oz/300 g cauliflower (about 1 small or large)", "5 scallions (spring onions), finely chopped", "large handful (1 oz/25 g) flat-leaf parsley, finely chopped", "1 tablespoon finely chopped mint leaves", "2 cloves garlic, very finely chopped", "½ teaspoon salt", "½ teaspoon ground cumin", "½ teaspoon Nine Spice Mix (page 24)", "¼ teaspoon turmeric", "1 cup (4 oz/120 g) all-purpose (plain) flour (or use a mixture of all-purpose/plain and whole wheat/wholemeal)", "4 eggs, beaten", "olive oil, for frying" ] } ], "instructions": [ "Chop the cauliflower into large chunks and steam or boil until fork-tender but not too soft, about 5 minutes.", "Remove from the heat, allow to dry for a few minutes then chop into small pieces.", "Put the cauliflower into a large mixing bowl and add the scallions (spring onions), parsley, mint, garlic, salt, and spices.", "Gently toss to combine without mashing the cauliflower.", "Add the flour and eggs and mix well.", "At this point the mixture can be used immediately or set aside in the refrigerator for several hours until ready to use.", "To pan-fry, pour enough oil into a large skillet (frying pan) to reach at least 3/4 inch/2 cm up the sides.", "Place over medium heat until a drop of the mixture bubbles up right away.", "Scoop about 4 tablespoons of the mixture into the pan.", "pressing it gently with the back of a spatula to flatten.", "Add several more scoops, leaving enough room between them to make flipping easier.", "Cook for 3-4 minutes on each side, or until golden brown.", "Drain the cooked fritters on paper towels while you cook the remainder (the fritters can be kept warm in a low oven until you are done frying)." ], "author": null }
- Assistantjson
{ "data": "PS" }