Skip to content

Commit 7e62009

Browse files
chore: add codespell config + fix one real typo (boostrap->bootstrap)
Spell-checked all prose + docstrings (290k LOC). The codebase is essentially typo-free: the only genuine misspelling found was 'boostrap' in a wooldridge.py comment. .codespellrc carries a curated ignore list for the econometrics/causal vocabulary that a general dictionary flags (te/hte/late/sate/ges/aer/tfe/tre/complier/stram/ parmeter/...), so 'codespell' runs clean locally as a dev convenience. No blocking CI gate: this domain coins new acronyms constantly, so a gate would be false-positive churn rather than signal. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6fbc4fc commit 7e62009

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.codespellrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[codespell]
2+
# Spell-check prose + docstrings. The econometrics / causal-inference
3+
# vocabulary trips a general dictionary heavily, so the ignore list below
4+
# is domain terms and acronyms that ARE correct here (not typos):
5+
# te/hte/late/lates/ate/att/cate - treatment-effect estimands
6+
# ges/fci/pc - causal-discovery algorithms
7+
# aer - American Economic Review (journal)
8+
# mata - Stata's matrix language
9+
# complier/compliers - IV principal strata
10+
# iy/nd/nin/ot/fo/te/ans/mor/wee - common short-token false positives
11+
skip = ./.git,./build,./dist,*.json,*.csv,*.lock,*.svg,*.ipynb,./tests/r_parity,./tests/stata_parity,./tests/reference_parity/_fixtures,./src/statspai.egg-info,./.venv,./site,*.min.js,./paper.bib
12+
# Domain terms / proper nouns / code identifiers that are CORRECT here:
13+
# tfe/tre - Greene (2005) True Fixed / Random Effects frontier models
14+
# stram - Stram & Lee (1994), authors of a mixture method
15+
# mian - Atif Mian, economist (author name)
16+
# ttest - statistical t-test identifier
17+
# numer - numerator (code abbreviation)
18+
# ehr - electronic health records
19+
# sems/sem - structural equation models / standard error of the mean
20+
# anc - ancestor set (do-calculus code)
21+
# infarction- myocardial infarction (epi example), not "infraction"
22+
ignore-words-list = te,hte,htes,late,lates,ate,att,cate,ges,fci,aer,mata,complier,compliers,nin,nd,ot,fo,ans,mor,iy,wee,thi,ist,fpr,parc,sav,ser,crate,pres,clen,dout,vart,coo,dur,supercede,bre,nce,fro,ines,reord,strat,strats,abd,ba,oder,recuse,tfe,tre,stram,mian,ttest,numer,ehr,sems,sem,anc,infarction,ment,unparseable,pre-emptive,re-use,re-uses,sate,parmeter,ede,bu
23+
quiet-level = 3

src/statspai/structural/production/wooldridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _build_problem(
6161
) -> dict:
6262
"""Build all NumPy arrays needed by the Wooldridge objective.
6363
64-
Returns a dict (instead of a class) so the boostrap path can rebuild
64+
Returns a dict (instead of a class) so the bootstrap path can rebuild
6565
it cheaply per replicate.
6666
"""
6767
free = list(free)

0 commit comments

Comments
 (0)