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": "Stovetop Brown Rice", "description": "Brown rice takes more than twice as long to cook as white, but the process can be hastened a bit by letting the grains soak for a few hours first. Even 2 hours of soaking is feasible. Steaming brown rice, following the absorption method used for white rice, is tricky. Instead, the following method for boiling brown rice produces consistent results, allowing quite a lot of control as well as a faster cooking time.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup long- or medium-grain brown rice (for 2 servings)", "2½ cups long- or medium-grain brown rice (for 4 or 5 servings)" ] } ], "instructions": [ "Place the rice in a bowl and cover with water.", "Swish the grains between your fingers and pick out any bits of debris, then drain.", "To presoak the rice, cover with at least 3 inches of water and let stand for at least 2 hours, or up to 8 hours. Drain.", "Combine the rice and at least 3 quarts of water in a large saucepan.", "Place over high heat and bring to a boil.", "Continue boiling until the rice is almost cooked-the grains should be chewy, with just a tiny bit of crunch left in them, 15 to 18 minutes for soaked rice, 20 to 25 for unsoaked.", "Reserve a ladleful of the cooking water, then drain the rice through a sieve.", "Immediately return the rice to the pot and add 2 tablespoons of the reserved cooking water.", "Reduce the heat to low, place the pot over the heat, and steam, covered, for about 5 minutes more, until the water is absorbed and the rice is tender.", "Remove from the heat, fluff with a fork, and let stand for at least 10 minutes, covered, before serving." ], "author": "" }
- Assistant
{ "data": "WWW" }