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": "Stovetop Steamed White Rice", "description": "Many cooks feel anxious about cooking rice on a stovetop. This recipe aims to alleviate that anxiety by providing clear instructions and addressing common misconceptions. It emphasizes the importance of checking on the rice during cooking and using the correct water ratio to avoid a wet mess. This method produces perfectly cooked, tender, and not mushy rice.", "subtitle": null, "ingredients": [ { "section": "For 2 servings", "ingredients": [ "1 cup medium- or long-grain white rice", "1½ cups water, plus more for rinsing" ] }, { "section": "For 4 or 5 servings", "ingredients": [ "2 cups medium- or long-grain white rice", "3 cups water, plus more for rinsing" ] } ], "instructions": [ "Put the rice in a small or medium saucepan, depending on the yield, and cover with water to rinse.", "Swish the grains vigorously with your fingers to remove excess starch, then drain thoroughly in a sieve.", "Return the rice to the saucepan and cover with the measured water.", "Place over high heat and bring the liquid to a full boil.", "Cover the pot, reduce the heat to the lowest setting-place the pot on a flame tamer if your stove is hot (see box) and cook, covered, for 15 to 18 minutes, until the water is absorbed and the grains are tender but not mushy or overcooked.", "Remove from the heat, fluff with a fork, and let stand for at least 10 minutes, covered, before serving." ], "author": null }
- Assistantjson
{ "data": "WWW" }