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": "Steamed yellow soya with mushrooms", "description": "This is a terrifically healthy dish.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "500 ml of salted water", "300 g of soya granules", "300 g of mushrooms", "2 fresh onions", "small bunch of flat-leaf parsley", "1 garlic clove", "half a salt-preserved lemon", "1 teaspoon of curry powder", "3 tablespoons of olive oil", "3 pinches of salt", "juice of 1 lemon" ] } ], "instructions": [ "Boil 500 ml of salted water in a saucepan.", "Sprinkle 300 g of soya granules into it.", "Cover with a lid and simmer for 20 minutes.", "Meanwhile, remove the stalks from 300 g of mushrooms, wash and slice thinly.", "Peel and mince 2 fresh onions with stalks.", "Wash and dry a small bunch of flat-leaf parsley and separate the leaves.", "Peel and chop 1 garlic clove.", "Combine all this in a salad bowl.", "Cut the zest of half a salt-preserved lemon into strips and add them too.", "Add 1 teaspoon of curry powder and 3 tablespoons of olive oil.", "Finish the seasoning with 3 pinches of salt and the juice of 1 lemon and mix.", "Add the cooked soya, mix well and serve straight away." ], "author": "" }
- Assistantjson
{ "data": "WWW" }