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": "Quick Pork Ribs with Honey and Pomegranate Molasses", "description": null, "subtitle": "Sticky, spicy, fingerlicking stuff.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "baby back pork ribs", "3 tablespoons of honey", "2 tablespoons of dark soy sauce", "a teaspoon of dried chilli flakes", "a tablespoon of pomegranate molasses", "2 tablespoons of mirin", "300g small pork ribs", "a little oil", "100ml water" ] }, { "section": "A red fruit version", "ingredients": [ "cranberry jelly", "a little crushed juniper", "a splash of cranberry juice" ] }, { "section": "Aniseed and honey", "ingredients": [ "black treacle", "cayenne pepper", "mustard powder", "tomato ketchup", "onion", "garlic", "smoked paprika", "cider vinegar", "apple juice", "honey", "oyster sauce", "crushed garlic", "dried chilli flakes", "ground star anise", "salt", "black pepper" ] } ], "instructions": [ "Mix together 3 tablespoons of honey, 2 tablespoons of dark soy sauce, a teaspoon of dried chilli flakes, a tablespoon of pomegranate molasses and 2 tablespoons of mirin.", "Slice 300g small pork ribs into individual ribs, then toss them in the dressing.", "Brown the ribs quickly in a little oil in a shallow pan over a moderate heat, turning them regularly.", "As soon as they start to caramelise, pour over any remaining marinade and let it bubble briefly, taking care not to let it burn, then add 100ml water.", "Cover the pan with a lid and cook for about 5 minutes.", "Remove the lid and continue cooking for a couple of minutes, till the ribs are dark and glossy." ], "author": null }
- Assistant
{ "data": "WAS" }