Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Benefits Denial/unfair.py's occupation-proxy comment misstates Native applicants' high-skill-role rate as "half" White's (actual: 77%)

Open Beginner friendly
#704 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

The issue is in the file Benefits Denial/unfair.py. Look at the top docstring-style comment and the script's printed 'WHAT'S WRONG' text. Compare the comment's claim about Native applicants' high-skill-role rate with the actual printed breakdown from lines 25-31 of the script's output. Update the comment to accurately reflect the 77% rate for Native applicants versus White's 26.2%, separating it from the Black rate. Run the script to verify the corrected output matches the new comment.

Written by the indexing model from the issue text.

Description

bug documentation

Where: Benefits Denial/unfair.py, the top docstring-style comment and the script's own printed "WHAT'S WRONG" text.

The gap: The comment claims:

"Racial occupational segregation means Black and Native applicants appear in high-skill roles at half the rate of White applicants."

But the script's own proxy-variable analysis (printed by the same run) shows the real per-race breakdown, and "Native" (Amer-Indian-Eskimo) is nowhere near half of White's rate:

Repro:

$ python3 "Benefits Denial/unfair.py" 2>&1 | sed -n '25,31p'
Pct in high-skill occupations by race:
  Amer-Indian-Eskimo        20.3%
  Asian-Pac-Islander        30.9%
  Black                     15.5%
  Other                     15.5%
  White                     26.2%

Black/White = 15.5/26.2 = 59% (roughly "half", as claimed). But Amer-Indian-Eskimo/White = 20.3/26.2 = 77% - not half. Lumping "Black and Native" together under one "~15%/half the rate" figure misrepresents the Native subgroup's actual, higher rate by a wide margin (20.3% vs the implied ~13%).

Fix direction: Either drop "Native" from the "half the rate" claim and report Black and Native separately with their real figures (59% and 77% of White's rate respectively), or rephrase without a shared percentage that doesn't hold for both groups.

Dominant language
HTML
Stars
47
Forks
45
Avg merge
2h
Merged PRs (30d)
92

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from yakew7/Fair-Code

All issues in yakew7/Fair-Code

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.