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": "Cherry Sage Sausages", "description": "Adding dried fruit to a sausage just seems so, I don't know, jubilant! These sausages will put a smile on all of your guests, even the ones who insist they aren't morning people and even if you have chosen "gothic" as your background music.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ cup navy beans, rinsed and\ndrained", "1 cup vegetable broth", "1 tablespoon olive oil", "2 tablespoons soy sauce", "1 teaspoon liquid smoke", "2 garlic cloves, grated (with a\nmicroplane, or very finely\nminced)", "1/4 cups vital wheat gluten", "¼ cup nutritional yeast", "1 tablespoon plus 1 teaspoon dry\nrubbed sage (not powdered)", "½ teaspoon ground ginger", "1/4 teaspoon ground allspice", "1/8 teaspoon ground cloves", "Fresh black pepper", "½ cup finely chopped dried\ncherries" ] } ], "instructions": [ "Before mixing your ingredients, get your steaming apparatus ready and bring water to a full boil.", "The rest of the recipe comes together very quickly.", "Have ready four sheets of tinfoil.", "In a large bowl, mash the beans until no whole ones are left.", "Throw all the other ingredients together in the order listed and mix with a fork.", "Divide dough into four even parts (an easy way to do this: split the dough in half and then into quarters).", "Place one part of dough into tinfoil and mold into about a 5-inch log.", "Wrap dough in tinfoil, like a Tootsie Roll.", "Don't worry too much about shaping it; it will snap into shape while it's steaming because this recipe is awesome.", "Place wrapped sausages in steamer and steam for 40 minutes.", "That's it! You can unwrap and enjoy immediately or refrigerate until ready to use.", "I like them sliced and sautéed in olive oil for a few minutes, or grilled whole and then sliced." ], "author": null }
- Assistant
{ "data": "WWW" }