PolicyEngine / PolicyEngine/policyengine-us

Consistent variable suffix to indicate individual: `_indiv`, `_indv`, `_person`

Open
#3,351 1 comment 0 reactions 0 assignees View on GitHub
code-health tax
Dominant language
Python
Stars
163
Forks
213
Avg merge
3d 3h
Merged PRs (30d)
96

Description

Most tax variables are tax unit-level, but some we have to compute for individuals, e.g. in states that allow married filing separately on same return. We have multiple suffixes to indicate this: `_indiv`, `_indv`, and `_person`. Let's consolidate them. I'd vote for `_person` to avoid abbreviating and tie it to an entity, but welcome suggestions.

Contributor guide

Open the contributing guide

Research direction

Start by locating tax variables that use the `_indiv`, `_indv`, and `_person` suffixes and inventory their definitions and references. Review the naming implications before choosing a convention, then verify that all affected variables and references use the agreed suffix consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.