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": "HOMEMADE JAM", "description": "Jam is one of those versatile foods that is used so much for baking, slathered on toast at breakfast, or enjoyed simply as a jam sandwich. Why not make your own? I often make batches of my own jam to spread on top of my scones or sandwich between layers of my cakes. This beauty of a recipe is a strawberry-based jam, but you can use any berry you like or a combination of berries - just make sure you have the weight quantities correct. If you prefer to make a smaller batch, halve the quantity given in the recipe.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1kg berries (I used strawberries)", "800g caster sugar", "75ml lemon juice", "Zest of 1 lemon" ] } ], "instructions": [ "Remove the tops of the strawberries with a sharp knife and give them a wash.", "Chop into quarters.", "In a large pan, add the prepared strawberries and squash with a potato masher to soften and break down.", "Add the sugar, lemon juice and zest.", "Stir continuously over a low-medium heat so that the sugar dissolves into the fruit and lemon.", "Once dissolved, increase the heat to high and start to boil the mixture.", "Skim off any sediment that forms on the top of the jam as it boils and discard.", "Using a sugar thermometer and stirring frequently, heat the mixture until it reaches 105°C.", "Pour the jam very carefully into two warmed 500ml sterilised jam jars (the jars should be warmed so that they don't break as you pour in the boiling jam).", "Seal the jars with sterilised lids while still warm and leave to cool completely." ], "author": null }
- Assistant
{ "data": "WWW" }