Functional Weave
Code in TypeScript

education.school-year-group@1.0.0

data/cohort-rules.json

725 bytes · view raw

[
  {"nation": "england", "cohortStart": "09-01", "schoolYearStart": "09-01", "entryAge": 4, "note": "Reception in the September after the 4th birthday: the cohort is born 1 September to 31 August"},
  {"nation": "wales", "cohortStart": "09-01", "schoolYearStart": "09-01", "entryAge": 4, "note": "as England: Reception in the September after the 4th birthday"},
  {"nation": "scotland", "cohortStart": "03-01", "schoolYearStart": "08-01", "entryAge": 4, "note": "P1 in August; a year group is born 1 March to the end of February"},
  {"nation": "northern-ireland", "cohortStart": "07-02", "schoolYearStart": "09-01", "entryAge": 4, "note": "P1 in September for children aged 4 on or before 1 July: born 2 July to 1 July"}
]