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": "Darphin potatoes", "description": "A yogurt and fruit to follow, and you have a really well-balanced meal that's quick and easy to prepare.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 kg of potatoes", "1 tablespoon of olive oil" ] } ], "instructions": [ "Peel, wash and dry 1 kg of potatoes and grate finely.", "Squeeze them between your hands and spread them on a clean tea towel.", "Add salt and freshly ground black pepper.", "Mix well with your hands so that they are seasoned evenly.", "Heat a large non-stick frying pan with a tablespoon of olive oil, tip in the potatoes and press down with a spatula to form a regular pancake.", "Cook for about 15 minutes over a medium heat.", "Place a large round dish over the frying pan and turn it over so that the potato cake is in the dish.", "Brush your frying pan with oil and slide the potatoes back in.", "Cook for a further 12 to 15 minutes, still on a medium heat.", "Tip the Darphin potatoes back onto the round dish.", "Add a generous twist of freshly ground black pepper and serve." ], "author": "" }
- Assistant
Pour identifier l'origine de la recette "Darphin potatoes", voici l'analyse basée sur le contenu fourni :
-
Recherche d'un pays : Le nom "Darphin" est associé à une technique de préparation de pommes de terre qui a des origines françaises. Cependant, il n'y a pas de mention explicite de pays dans la recette.
-
Détermination de l'origine culinaire : Étant donné que "Darphin potatoes" est une recette typique de la cuisine française, nous pouvons en déduire que son origine est la France.
-
Identification d’un continent : Il n'est pas nécessaire d'identifier un continent, car un pays a été trouvé.
-
Données à retourner : Le code ISO 3166-1 alpha-2 pour la France est "FR".
Voici le résultat au format JSON structuré demandé :
json{ "data": "FR" } -