Sri Lanka A/L Subject Combination Validator
Pick three G.C.E. Advanced Level subjects and see in one click which UGC stream they unlock — Biological Science, Physical Science, Engineering Technology, Bio-systems Technology, Commerce or Arts. Invalid combinations come with the specific rule that failed and the closest valid alternative.
How it works
Every state-university Sri Lankan undergraduate intake routes through one of six Advanced Level streams defined by the University Grants Commission. Each stream is a rule: a small set of mandatory subjects, a basket of permitted optional subjects, and (sometimes) a disallowed-pair list. The validator above models each rule declaratively and checks your three picks against all six in turn.
- Normalise. Each subject you pick is matched to its Department of Examinations code from the canonical A/L subject catalogue. A combination must contain exactly three distinct recognised subjects.
- Walk the streams. The validator visits each rule in priority order (Bio → Phys → Eng Tech → Bio-systems Tech → Commerce → Arts) and asks:
- Are all mandatory subjects in your combination?
- Does the basket pick-N constraint hold?
- Is any pair on the disallowed-pair list present?
- For Eng Tech and BST: is the third subject inside the open basket (pure sciences and Combined Maths are excluded)?
- Verdict.If exactly one stream matches, that's the stream. If more than one matches, both are surfaced (a rare borderline case). If none match, the rule that failed for the closest-fit stream becomes the verdict reason.
- Suggest swaps. For invalid combinations, the validator runs a one-subject diff: for each of your three subjects it tries every catalogue subject as a replacement and reports up to three single-swap edits that would turn the combination valid.
The same evaluation is exposed twice in the data module — once as the main validateCombination function that returns every matching stream, and once as a strict classifyByPriorityWalk cross-check that returns the first match. Both must agree on every combination that yields a unique stream; ten regression cases assert this in the source.
Worked examples
Frequently asked questions
Sources & references
- University Grants Commission of Sri Lanka — Admissions to Undergraduate Courses Handbook 2024/2025
- Department of Examinations Sri Lanka — G.C.E. (A/L) syllabus and subject-code catalogue
- Ministry of Education Sri Lanka — A/L syllabus revision circulars (Engineering Technology, Bio-systems Technology)
- University Grants Commission Sri Lanka — official site
Stream rules and subject baskets on this page were last cross-checked against the cited UGC and DoE sources on 2026-05-16. They are reviewed every April at the start of the new SL admission cycle, and again after every gazetted Ministry of Education circular revision. Coverage is state-university (UGC) admission only; private and foreign-equivalency rules are out of scope.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a stream rule that has changed, or a combination the tool misclassifies?
Email me at [email protected] — most fixes ship within 24 hours.