Skip to content

fix(parser): author parsing from #125 - #179

Merged
mdoering merged 3 commits into
mainfrom
fix/125-author-parsing
Oct 17, 2026
Merged

mdoering merged 3 commits into
mainfrom
fix/125-author-parsing

Conversation

@mdoering

Copy link
Copy Markdown
Member

Refs #125. Nine of the 13 names in the issue already parsed right on main. Three commits fix the other four.

1. Comma-less teams written initials first

S.G.M. Carr D.J. Carr & A.S. George came out as two authors and is now three. J. De C. Sowerby and Roy L. Taylor each stay one author.

266 of 1,208 CLB rows with this shape change, all of them run-on teams like C. Agardh J. Agardh or S.L.Chen T.H.Wen & G.Y.Sheng.

2. A in B ex C

Wedd. in Urb. ex Pilg. now gives author Pilg. and ex-author Wedd. Before, the parser read Urb. ex Pilg. as the publication. This also applies to apud and to a basionym in brackets ((Pers. in Gmelin ex Fr.)).

in B is removed with a Removed: in Urb. warning. It goes into neither inAuthors nor publishedIn. Of the 59 changed rows:

  • About 20 have B as the work C published in (Kunze in Mart. ex Baker, Mart. in DC. ex Choisy).
  • About 39 have B as where A's name first appeared (Pers. in Gmelin ex Fr., Hampe in C. Müller ex Gangulee, Müll. in Fl. Dan. ex Fr.). Several of these Bs are titles, not people.

inAuthors belongs to the validating author, so it would be wrong for most rows. The warning still keeps the citation word for word.

These are left as before:

  • a citation with a year, page or list (Valenciennes in Cuvier & Valenciennes, 1840 ex Ehrenberg);
  • an anonymous author.

One impl_04 test (Cogn. in Kuntze ex Kuntze) is updated to the new result.

3. Ex-author in lower case

Hieracium multicaule schaffner ex Sch.Bip. and Tamarix indica koen. ex Roxb. lost their ex-author: the parser read it as an infraspecific epithet. A lower-case word after the species epithet followed by ex Capital now starts the authorship. This doesn't apply right after a rank marker, or to an undotted word with an epithet ending (munchiquensis).

126 of 18,412 rows change. The ex-author keeps its lower case (koen.).

Not fixed

  • sp. lindeberg ex Omang, with sp., still comes out as subspecies lindeberg. This form isn't in CLB; lindeberg ex Omang without sp. now parses right.
  • In (ex Prickett, 1928) the ex-author's year is lost, because there is no field for it.

Tests

cargo test --workspace, clippy and fmt are clean. New tests are in tests/old_parser_issues.rs (issue_125_*).

"S.G.M. Carr D.J. Carr & A.S. George" read as two authors, "S.G.M.Carr
D.J.Carr" and "A.S.George": dotted initials followed by a surname after a
complete author were taken for the middle initial of a written-out forename
("Roy L. Taylor"). When the author before them starts with its own initials,
they open the next author. A particle between the initials still keeps one
author ("J. De C. Sowerby").

Measured over 1,208 distinct ChecklistBank name/authorship rows with an
initials-first author followed by another without a separator: 266 change,
all splitting run-on teams ("R. Potonié P.W. Thomson & F. Thiergart",
"C. Agardh J. Agardh", "S.L.Chen T.H.Wen & G.Y.Sheng").

Refs #125
… name up (#125)

"Wedd. in Urb. ex Pilg." kept Weddell as the author and took "Urb. ex
Pilg." for the reference, losing Pilger. The author after the ex took up
the name of the author before the in, so the citation is "Wedd. ex Pilg.",
as IPNI writes it. Where the work between belongs is unclear: in "Mart. in
DC. ex Duch." Duchartre published in de Candolle's Prodromus, in "Hampe in
C. Müller ex Gangulee, 1974" Hampe's name appeared in Müller's work and
Gangulee published it. It is removed with a "Removed: in DC." warning
rather than read as the reference. In a bracketed basionym too: "(Pers. in
Gmelin ex Fr.)".

A citation with a year, page or list ("Valenciennes in Cuvier &
Valenciennes, 1840 ex Ehrenberg") and an anonymous author stay as they
were.

Measured over 636 distinct ChecklistBank rows with an ex after in or apud:
59 change, all this shape.

Refs #125
…125)

"Hieracium multicaule schaffner ex Sch.Bip." and "Tamarix indica koen. ex
Roxb." read the lower-case ex-author as an unmarked infraspecific epithet
and lost it. A word after the species epithet that is followed by "ex" and
a capitalised author now opens the authorship, unless a rank marker comes
before it or, written out without a dot, it ends like an epithet
("munchiquensis").

Measured over 18,412 distinct ChecklistBank rows with a lower-case word
before "ex": 126 change, all lower-case ex-authors that were epithets
(koen., russ., wallich, presc., alam., lindeberg …).

Refs #125
@mdoering
mdoering merged commit 3a6b21c into main Oct 17, 2026
9 of 11 checks passed
@mdoering
mdoering deleted the fix/125-author-parsing branch October 17, 2026 00:05
@mdoering mdoering mentioned this pull request Oct 17, 2026
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