import json
data=[ {"name": "Maryah Mink", "siblings": 5, "parents": {"mom": "Mama Mink", "dad": "Papa Mink"},
"birthdate": "December 13, 2007", "age": 17, "school": "Jean Ribault High School",
"favorite_color": "Pink", "best_friend": "Mr. Jett"} ]
def answer_question(data, question):
question = question.lower() # Convert the question to lowercase to make case-insensitive comparisons
if "name" in question:
return data[0]["name"] # If the word "name" is in the question… See the full description on the dataset page:
https://huggingface.co/datasets/MaryahGreene/FamHistory.