[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
#
# Skip generated / imported / external content:
#   - Top-level release artifacts (derived from src/ontology/uberon-edit.obo)
#   - subsets/, imports/, taxmods/, diffs/, languages/ (all derived)
#   - source-ontologies/, resources/, ext-mappings/, mappings/, modules/
#   - reports/, attic/, bulk_ntr_workflow/, experimental/
#   - docs/resources/ (binary graffle assets)
#   - docs/odk-workflows/ (auto-generated from odkcore -- upstream fixes only,
#     see https://github.com/INCATools/ontology-development-kit)
#   - src/scripts/ubermacros.el (auto-generated ~196k-line NCBITaxon index)
#   - src/ontology/bridge/uberon-bridge-to-*.owl and cl-bridge-to-*.owl
#     (auto-generated by SSSOM inject, see `refresh-bridges` in
#     src/ontology/uberon.Makefile)
#   - src/patterns/definitions.owl (generated from src/patterns/data/**/*.tsv)
#   - LICENSE (fixed legal wording; do not rewrite even if it has typos)
#   - .git-meta (author-workflow scratch for commit / PR message drafts)
#   - src/ontology/uberon-edit.obo -- the ontology edit file. Its contents
#     will be spell-checked in a separate curator-reviewed PR; skipped here
#     so that this infrastructure PR does not conflate infrastructure setup
#     with curator-judgement calls on ~200 biological / anatomical terms.
skip = .git,.git-meta,.gitignore,.gitattributes,.codespellrc,LICENSE,*.pdf,*.svg,*.graffle,*.tmp*,*.LOG,attic,bulk_ntr_workflow,experimental,ext-mappings,mappings,modules,reports,resources,source-ontologies,subsets,depictions.owl,external-disjoints.owl,homology.owl,homology-relations.owl,musculoskeletal.obo,musculoskeletal.owl,project.owl,reasoner_axioms.owl,rules.owl,ssso-merged-uberon.owl,uberon-base.owl,uberon-simple-rel.obo,uberon-taxmod-amniote.obo,uberon-with-isa.obo,uberon.obo,imports,taxmods,diffs,languages,odk-workflows,ubermacros.el,uberon-edit.obo,uberon-bridge-to-*.owl,cl-bridge-to-*.owl,definitions.owl
check-hidden = true
# Protect:
#   - URLs (short host substrings like bu.edu would otherwise flag "bu")
#   - camelCase / PascalCase identifiers (Prolog vars in *.pro scripts,
#     code identifiers)
#   - Cross-reference values after `PREFIX:` (BAMS:MEnt, BM:Tel-OLT etc.
#     -- external IDs must not be "corrected")
ignore-regex = https?://\S+|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b|\b[A-Z]{2,}:[\w-]+
# Domain vocabulary that codespell flags as typos but is legitimate here:
#   Anatomical / Latin terms recurring in non-uberon-edit content
#   (bridge/external-disjoints.obo, src/patterns/data/**/*.tsv, etc.):
#     mater      - dura/pia/arachnoid mater (meninges)
#     vas        - vas deferens etc.
#     processus  - Latin "process"
#     regio      - anatomical region (Latin)
#     collum     - Latin "neck"
#   Ontology terminology:
#     disjointness - "disjointness axiom" (OWL/OBO term)
#   Curated-data / code noise:
#     anc          - Prolog predicate name in *.pro scripts
#     nd           - Prolog predicate (nd/4 in src/scripts/namediff.pro) and
#                    GO evidence code "ND" (No Data) in uberon.references
#     heterogenous, homogenous - accepted variants
ignore-words-list = mater,vas,processus,regio,collum,disjointness,anc,nd,heterogenous,homogenous
