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": "The Princess Kaguya Mushroom & Chicken Stir-Fry", "description": "In The Tale of Princess Kaguya, peasants find a young Kaguya in a bamboo shoot and raise her as their daughter. The little girl flourishes in her simple country life and makes friends with the village children. During a pheasant hunt, sparks of romance fly between Kaguya and a young man named Sutemaru. They plan a stir-fry, but Kaguya's father takes her away to become a princess, leaving this simple meal a symbol of her lost joy. This recipe adaptation would surely remind Kaguya of her youth's joyful memories.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "9 ounces chicken (or other poultry)", "3 cloves garlic", "1 tablespoon sesame oil", "1 tablespoon soy sauce", "1 egg", "Salt and pepper", "3/4 cup uncooked rice", "9 ounces mushrooms (white mushrooms or a blend)", "2 tablespoons unsalted butter", "1 tablespoon olive oil" ] } ], "instructions": [ "Cut the chicken into small pieces.", "Chop the garlic and divide it into two equal portions.", "Put half of the garlic in a mixing bowl with the chicken pieces, sesame oil, soy sauce, egg, salt, and pepper. Stir well and then refrigerate for about 10 minutes.", "Meanwhile, cook the rice in boiling water for 15 minutes.", "While the rice is cooking, slice the mushrooms.", "In a frying pan, melt the butter and then add the olive oil and the remaining garlic. Sauté until the garlic turns yellow.", "Add the mushrooms and fry them, turning once in the middle of cooking.", "Remove the marinated chicken from the refrigerator and add it to the pan.", "Brown the chicken on all sides.", "Serve with the rice." ], "author": null }
- Assistantjson
{ "data": "JP" }