Skip to content

Fix typos in uberon-edit.obo via codespell (follow-up to #3759) - #3762

Open
yarikoptic wants to merge 2 commits into
obophenotype:masterfrom
yarikoptic:enh-codespell-uberon-edit
Open

Fix typos in uberon-edit.obo via codespell (follow-up to #3759)#3762
yarikoptic wants to merge 2 commits into
obophenotype:masterfrom
yarikoptic:enh-codespell-uberon-edit

Conversation

@yarikoptic

@yarikoptic yarikoptic commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

The continuation to the

Fix typos in src/ontology/uberon-edit.obo detected by codespell, and expand
codespell coverage to include this file going forward.

#3759 explicitly skipped uberon-edit.obo pending a curator-reviewed
pass of domain-specific false positives. AI did its review, now it is
for an HI (Human Intelligence) curator to contribute.

Summary

Commit 1 — .codespellrc: removes uberon-edit.obo from the skip
list and adds 40+ words to ignore-words-list so that domain-specific
terms (Latin TA synonyms, anatomical abbreviations, intentional misspellings
in RELATED synonyms, non-English words in citations, proper names) are not
touched by codespell.

Commit 2 — uberon-edit.obo: ~100 genuine typo fixes, applied via
codespell -w (auto-fix for single-suggestion cases) plus manual fixes
for domain-sensitive, multi-suggestion, and broken-word cases.

Notable manual decisions:

  • Formen → Foramen (codespell suggested wrong "Foremen")
  • palatte → palate (codespell suggested wrong "palette")
  • bein → vein in a comment about dorsal penile vein
  • develop- ment, con- sists — broken words across line breaks joined
  • trough the stylopodiam → through the stylopodiam (manual, since trough is protected globally)

Rationale (by Claude) for scope

All changes are in non-logical content (definitions, comments,
taxon_notes, editor_notes, external_definitions, synonyms) — no
is_a, intersection_of, or relationship lines were touched. Changes
to EXACT synonyms sourced from external databases were treated conservatively
(e.g. auxillery and collumn left intact as RELATED/EXACT from their
source).

The codespell CI check (added in #3759) now covers uberon-edit.obo and
will flag any new typos on future PRs.

Test plan

  • codespell . passes with zero errors on this branch
  • No logical axioms changed (only natural-language content)
  • robot convert reserialisation applied to normalise synonym ordering
  • Build / ROBOT validation (CI)

Notes for reviewers

The expanded ignore-words-list in .codespellrc tuned up to bring
comments to the words. Potentially such skips could be set up via an external
file but I think there is no point to breed those files, as .codespellrc is
already tool specific.

Follow-up from #3759 (infrastructure PR). The docs/odk-workflows/
follow-up (odkcore PR) is tracked separately.


🤖 Generated with Claude Code 2.1.251 / Claude Sonnet 4.6 in an interactive session.
Reviewed and submitted by @yarikoptic (as yarikoptic-gitmate was intended but didn't happen ;) ).

yarikoptic and others added 2 commits August 30, 2026 12:59
Remove uberon-edit.obo from the codespell skip list.  The previous PR
(obophenotype#3759) deferred this file pending curator review of false positives.
That review has now been done: 40+ domain-specific terms added to
ignore-words-list, each with an inline comment in .codespellrc explaining
why it is protected (Latin TA synonyms, anatomical abbreviations,
intentional misspellings in RELATED synonyms, non-English words in
citations, proper names).

Co-Authored-By: Claude Code 2.1.251 / Claude Sonnet 4.6 <noreply@anthropic.com>
~100 genuine typos corrected via `codespell -w` (auto) and manual
editing.  Domain-specific false positives are protected by the updated
.codespellrc (see previous commit); only plain spelling errors are
changed here.

Highlights of manually reviewed fixes:
  - "auxillery nerve" RELATED syn left intact (intentional misspelling)
  - "collumn dentis" EXACT syn left intact (from ncithesaurus:Collum_Dentis)
  - "Formen" → "Foramen" (codespell suggested wrong "Foremen")
  - "palatte" → "palate" (codespell suggested wrong "palette")
  - "develop- ment" → "development" (broken word in comment)
  - "con- sists" → "consists" (broken word in taxon_notes)
  - "deep dorsal bein" → "deep dorsal vein" (typo of "vein")
  - "trough the stylopodiam" → "through the stylopodiam" (trough is
    correct in another context, so protected in ignore-words-list)
  - "foor" / "fot" → "foot" (multi-suggestion, manual fix)
  - Various multi-suggestion fixes: eigth→eighth, partion→portion,
    identiy→identity, inernal→internal, extermal→external,
    tranverse→transverse, retricts→restricts, throught→through,
    tha→that, fo→of

Also reserialised via `robot convert -i uberon-edit.obo -f obo -o
uberon-edit.obo` to normalise synonym ordering.

Co-Authored-By: Claude Code 2.1.251 / Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant