Repository navigation
fix(parser): author parsing from #125 - #179
Merged
Merged
Conversation
"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
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Georgecame out as two authors and is now three.J. De C. SowerbyandRoy L. Tayloreach stay one author.266 of 1,208 CLB rows with this shape change, all of them run-on teams like
C. Agardh J. AgardhorS.L.Chen T.H.Wen & G.Y.Sheng.2.
A in B ex CWedd. in Urb. ex Pilg.now gives author Pilg. and ex-author Wedd. Before, the parser readUrb. ex Pilg.as the publication. This also applies toapudand to a basionym in brackets ((Pers. in Gmelin ex Fr.)).in Bis removed with aRemoved: in Urb.warning. It goes into neitherinAuthorsnorpublishedIn. Of the 59 changed rows:Kunze in Mart. ex Baker,Mart. in DC. ex Choisy).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.inAuthorsbelongs 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:
Valenciennes in Cuvier & Valenciennes, 1840 ex Ehrenberg);One
impl_04test (Cogn. in Kuntze ex Kuntze) is updated to the new result.3. Ex-author in lower case
Hieracium multicaule schaffner ex Sch.Bip.andTamarix 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 byex Capitalnow 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, withsp., still comes out as subspecieslindeberg. This form isn't in CLB;lindeberg ex Omangwithoutsp.now parses right.(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 intests/old_parser_issues.rs(issue_125_*).