Check citizenship by descent eligibility
check_descent_eligibilityCheck whether a person qualifies for citizenship by descent.
Input is the person's direct ancestral line, one entry per generation,
starting with relation='self'. Every generation between the person and
the ancestor is required, because descent passes generation by generation
and a gap changes the answer.
Exact dates give the most precise result. Year-only input is accepted and
the result carries a caveat; for Ireland, a registration and a birth in the
same year cannot be resolved.
Args:
country: ISO 3166-1 alpha-2, lowercase. Currently 'ie' or 'ca'.
line: The direct line, from the user upward.
as_of: Evaluation date. Defaults to today. Rules with commencement
dates (Canada's Bill C-3) depend on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| as_of | No | ||
| country | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caveats | No | Approximations and unresolvable ambiguities in the input. | |
| missing | No | ||
| sources | No | Law and official guidance the rules were built from. | |
| verdict | Yes | One-line plain reading of the confidence band. | |
| blockers | No | ||
| rationale | Yes | ||
| confidence | Yes | green, yellow, or red | |
| disclaimer | Yes | ||
| learn_more | Yes | ||
| pathway_id | Yes | ||
| next_action | No | ||
| country_code | Yes | ||
| supporting_facts | No | ||
| rules_verified_as_of | Yes |