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": "Purslane Salad", "description": "Extremely fresh and sharp, this salad will make your taste buds tingle. If you're like my father-in-law, you can have it on a daily basis alongside every meal or as a meal in itself! Otherwise, it's a perfect complement to spiced rice dishes like Flipped Over Chicken and Vegetable Rice (page 198) or Stuffed Vegetables in Tomato sauce (page 184) because its fresh sharpness really cuts through all those rich flavors. It is also one of those few salads that tastes just as good the following day once all the flavors have melded together.", "subtitle": "سلطة بقله", "ingredients": [ { "section": "For the recipe", "ingredients": [ "200g purslane or mache (lamb's lettuce) or curly endive", "4-6 scallions (spring onions), thinly sliced", "1 whole lemon" ] }, { "section": "For the dressing", "ingredients": [ "2-3 tablespoons lemon juice", "2-3 tablespoons olive oil", "½ teaspoon salt", "½ teaspoon sumac, plus extra for garnish" ] } ], "instructions": [ "Tear the purslane into bite-size pieces, put into a large salad bowl, and toss the scallions (spring onions) on top.", "Use a sharp knife to peel the yellow rind from the lemon, keeping the pith intact.", "Dice the lemon into bite-sized cubes then set aside.", "In a small bowl, whisk together the dressing ingredients and pour over the purslane and scallions.", "Very gently toss to combine.", "Top with the diced lemons, sprinkle with a little extra sumac and serve." ], "author": "" }
- Assistantjson
{ "data": "WAS" }