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é.
1. 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": "Ham Hock, Herb Sauce", "description": "The nannying quality of peas and ham, the vitality of fresh herbs. Quiet, old-fashioned flavours for leftover ham hock.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "500-600g ham hock", "200g fresh or frozen peas", "a large clove of garlic", "a handful of parsley", "a handful of chives", "a handful of basil leaves", "pepper (if necessary)" ] }, { "section": "For the salad (optional)", "ingredients": [ "chicory", "inner lettuce leaves", "mint", "parsley", "basil", "a finely chopped shallot", "lemon juice", "salt", "olive oil", "hard-boiled eggs" ] } ], "instructions": [ "Put a 500-600g ham hock in a deep pan with just enough water to cover.", "Bring to the boil, skim off the froth that rises to the surface, then turn the heat down so the liquid simmers.", "Cover with a lid and leave, with the occasional turn, for 45-50 minutes or so, till the ham is cooked through to the bone.", "Remove the ham from the cooking liquor, add 200g fresh or frozen peas and a large clove of garlic, and cook for 5 minutes or so, till the peas are tender.", "Add a handful of parsley, a handful of chives and a handful of basil leaves to the peas, cook a minute or so longer, then blitz in a blender to give a thick, green sauce.", "Add pepper if necessary.", "Tear the ham from its bone in large pieces.", "Roughly chop a few more of the herbs, then roll the pieces of ham in them.", "Spoon the sauce into bowls and add the pieces of ham." ], "author": null }
- Assistant
{ "data": "WWW" }