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": "Tomatoes with an Anchovy Crumb Crust", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "tomatoes", "anchovies", "white bread", "basil", "coriander", "parsley", "spring onions", "4 tablespoons of olive oil", "6 spring onions", "1kg tomatoes", "1 chopped tomato", "a handful of basil and coriander leaves", "a grinding of black pepper", "a very little salt", "60g white bread", "a handful of parsley", "5 anchovies", "a little black pepper" ] } ], "instructions": [ "Set the oven at 180°C/Gas 4.", "Put 4 tablespoons of olive oil into a deep frying pan set over a moderate heat.", "Slice 6 spring onions and add them to the pan.", "Halve 1kg tomatoes horizontally and add them to the pan too.", "Cover with a lid and cook for 5 minutes or so, till the tomatoes have softened but are still holding their shape.", "Add a chopped tomato to the pan with a handful of basil and coriander leaves, a grinding of black pepper and a very little salt, then turn off the heat.", "Blitz 60g white bread in a food processor till you have soft, coarse crumbs, then add a handful of parsley, 5 anchovies and a little black pepper and process again briefly.", "Transfer the tomatoes and their cooking juices to an ovenproof dish or tin, scatter the crumb crust over them and bake for 30 minutes, until the tomatoes are sizzling and the crust is deep gold." ], "author": null }
- Assistantjson
{ "data": "WWW" }