Spaces:
Running on Zero

File size: 7,553 Bytes
3e6f84d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""Original adult reading material. Practice and evaluation IDs never overlap."""

PASSAGES = [
    {
        "id": "en-practice-bookshop", "language": "en", "split": "practice",
        "title": "The small bookshop", "category": "Everyday places",
        "text": "On Saturday morning, Anna walked to the small bookshop near her home. The door was open, and a soft light fell across the wooden floor.\n\nShe picked a book from the shelf and sat beside the window. Outside, people hurried past with bags and umbrellas. Inside, there was time to read another page.",
        "exercise": {"question": "Where did Anna sit?", "options": ["Beside the window", "Outside the shop", "Near the door"], "answer": 0, "explanation": "The passage says that Anna sat beside the window."},
    },
    {
        "id": "en-practice-market", "language": "en", "split": "practice",
        "title": "At the market", "category": "Daily life",
        "text": "Sam brought a cloth bag to the market. He wanted tomatoes, bread, and a few apples. The bread was still warm, so he carried it carefully.\n\nOn the way home, he met a neighbour near the bus stop. They talked for a few minutes before Sam continued down the street.",
        "exercise": {"question": "Why did Sam carry the bread carefully?", "options": ["The bag was broken", "The bread was still warm", "It was raining"], "answer": 1, "explanation": "Sam carried the bread carefully because it was still warm."},
    },
    {
        "id": "en-eval-garden", "language": "en", "split": "evaluation",
        "title": "The shared garden", "category": "Community",
        "text": "Every Wednesday, Maya visits the shared garden behind the library. She fills a green watering can and checks the young plants. This week, the soil is already wet after a night of rain.\n\nInstead of watering, Maya clears the path and collects fallen leaves. Before leaving, she closes the gate gently.",
        "exercise": {"question": "Why did Maya decide not to water the plants?", "options": ["The watering can was missing", "The library was closed", "The soil was already wet"], "answer": 2, "explanation": "Rain had already made the soil wet."},
    },
    {
        "id": "en-eval-station", "language": "en", "split": "evaluation",
        "title": "A change of platform", "category": "Travel",
        "text": "Leo arrived at the station early and bought a bottle of water. His train was due to leave from platform three. Then an announcement asked passengers to use platform five instead.\n\nHe checked the new sign and followed the stairs. There was still enough time to find a seat before the train arrived.",
        "exercise": {"question": "Which platform did Leo go to after the announcement?", "options": ["Platform three", "Platform five", "Platform one"], "answer": 1, "explanation": "The announcement changed the platform from three to five."},
    },
    {
        "id": "el-practice-bookshop", "language": "el", "split": "practice",
        "title": "Το μικρό βιβλιοπωλείο", "category": "Καθημερινοί χώροι",
        "text": "Το πρωί του Σαββάτου, η Άννα πήγε στο μικρό βιβλιοπωλείο κοντά στο σπίτι της. Η πόρτα ήταν ανοιχτή και ένα απαλό φως έπεφτε στο ξύλινο πάτωμα.\n\nΔιάλεξε ένα βιβλίο από το ράφι και κάθισε δίπλα στο παράθυρο. Έξω, ο κόσμος περνούσε βιαστικά με τσάντες και ομπρέλες. Μέσα, υπήρχε χρόνος για μία ακόμη σελίδα.",
        "exercise": {"question": "Πού κάθισε η Άννα;", "options": ["Έξω από το βιβλιοπωλείο", "Κοντά στην πόρτα", "Δίπλα στο παράθυρο"], "answer": 2, "explanation": "Το κείμενο λέει ότι η Άννα κάθισε δίπλα στο παράθυρο."},
    },
    {
        "id": "el-practice-market", "language": "el", "split": "practice",
        "title": "Στη λαϊκή αγορά", "category": "Καθημερινή ζωή",
        "text": "Ο Νίκος πήρε μια πάνινη τσάντα και πήγε στη λαϊκή αγορά. Αγόρασε ντομάτες, μήλα και λίγο ψωμί. Έβαλε τα φρούτα στον πάτο της τσάντας και το ψωμί από πάνω.\n\nΣτον δρόμο για το σπίτι, συνάντησε μια γειτόνισσα. Μίλησαν για τον καιρό και έπειτα συνέχισαν τη διαδρομή τους.",
        "exercise": {"question": "Πού έβαλε ο Νίκος το ψωμί;", "options": ["Πάνω από τα φρούτα", "Στον πάτο της τσάντας", "Στην τσέπη του"], "answer": 0, "explanation": "Έβαλε τα φρούτα στον πάτο και το ψωμί από πάνω."},
    },
    {
        "id": "el-eval-library", "language": "el", "split": "evaluation",
        "title": "Στη βιβλιοθήκη", "category": "Η γειτονιά",
        "text": "Η Ελένη επέστρεψε ένα βιβλίο στη βιβλιοθήκη της γειτονιάς. Ήθελε να δανειστεί ένα άλλο, αλλά δεν είχε μαζί της την κάρτα της. Η υπάλληλος της πρότεινε να διαβάσει εκεί για λίγο.\n\nΗ Ελένη βρήκε ένα ήσυχο τραπέζι δίπλα σε ένα μεγάλο παράθυρο. Κάθισε και διάβασε μέχρι το μεσημέρι.",
        "exercise": {"question": "Γιατί δεν δανείστηκε άλλο βιβλίο η Ελένη;", "options": ["Η βιβλιοθήκη ήταν κλειστή", "Δεν είχε μαζί της την κάρτα της", "Δεν βρήκε κανένα βιβλίο"], "answer": 1, "explanation": "Η Ελένη δεν είχε μαζί της την κάρτα της βιβλιοθήκης."},
    },
    {
        "id": "el-eval-walk", "language": "el", "split": "evaluation",
        "title": "Μια απογευματινή βόλτα", "category": "Ελεύθερος χρόνος",
        "text": "Το απόγευμα, ο Πέτρος και η Μαρία βγήκαν για μια βόλτα στο πάρκο. Ο αέρας ήταν δροσερός και τα μονοπάτια ήταν σχεδόν άδεια. Περπάτησαν μέχρι τη μικρή λίμνη και κάθισαν σε ένα παγκάκι.\n\nΌταν άρχισε να σκοτεινιάζει, αποφάσισαν να επιστρέψουν. Στον δρόμο σταμάτησαν για να αγοράσουν ψωμί για το πρωινό.",
        "exercise": {"question": "Πότε αποφάσισαν να επιστρέψουν;", "options": ["Όταν άρχισε να βρέχει", "Μόλις έφτασαν στο πάρκο", "Όταν άρχισε να σκοτεινιάζει"], "answer": 2, "explanation": "Αποφάσισαν να επιστρέψουν όταν άρχισε να σκοτεινιάζει."},
    },
]

BY_ID = {passage["id"]: passage for passage in PASSAGES}


def public_passage(passage):
    """Keep the answer out of the reading response until the exercise is checked."""
    return {**passage, "exercise": {key: value for key, value in passage["exercise"].items() if key not in {"answer", "explanation"}}}