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": "POMEGRANATE MOLASSES", "description": "If you were to talk to my mother in the late summer, she would tell you she can't bear pomegranates. The reason? My father spends every single afternoon picking pomegranates from our tree, meticulously peeling and seeding them so that not a single seed is squashed, and then juicing them to making cordial, syrup, and molasses. Our kitchen becomes a factory, my father's shirts become irreparably stained, and my mother no longer owns her kitchen. Soon after, however, she gives out much of the season's bounty in molasses and juice to all our family and friends, proudly tells them how her husband did it all, and all the weariness is forgotten. While you can buy this in stores, I highly recommend you make your own only then can you really know what has gone into it.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 cups (1% pints/1 liter) fresh pomegranate juice (see Note)", "½-½ cup (2-2½ oz/50-65 g) sugar (optional)", "1 tablespoon freshly squeezed lemon juice (optional)" ] } ], "instructions": [ "Pour the pomegranate juice into a pan and place over medium heat.", "If you are using freshly squeezed pomegranate juice, then all you need to do is bring to a boil, reduce the heat and simmer, stirring occasionally, until you reach a light syrup consistency.", "If you are using a store-bought variety of pomegranate juice, add the sugar and lemon juice to the pan and cook until the sugar has dissolved, then reduce the heat and simmer as above.", "You want it to reduce to about a quarter of the original amount, or to coat the back of a spoon but not be too thick, as it will thicken more when it cools.", "This can take anywhere between 1-2 hours.", "Once the desired consistency is reached, remove from the heat, allow to cool in the pan, then transfer to a glass bottle or jar.", "Cool completely before storing in the refrigerator." ], "author": null }
- Assistantjson
{ "data": "WWW" }