From 12f9abc58b971aa5883b2af36568b55c1294b2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Wed, 18 Nov 2026 18:18:50 +0100 Subject: [PATCH 01/16] fix(parser): alternatives with their own authorship (#235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `Carduelis carduelis (Linnaeus, 1758) / Serinus canaria (Linnaeus, 1758)` became Carduelis carduelis with the author "Serinus canaria", and `Chionodoxa forbesii BAKER / luciliae BOISS.` left the alternative unparsed: the alternatives rules of #212/#225 wanted the slash right after the epithet. An authorship may now stand between them, so the same rules apply: two genera are no name, one genus is informal with the alternatives as its phrase. Only an authorship of capitalised names, years, `&`, `et`, `ex` and `in` counts, every alternative after it must be a whole epithet or species with or without its own authorship, and the slash stands apart on one side at least. So alternative authors (`Aus bus Jarocki / Schinz`), strains (`indica PD1998/pus`), pages (`pl. 222 / figs 1 – 7`), hosts (`ex Ficus popenoei/nymphaefolia`) and a word holding a slash (`Girraween/Polblue variant`) stay as they were. ChecklistBank: 1 row of 190,347 with a slash or pipe (`Gymnophryxe pretoriensis Bezzi, 1911/ Archiclops pretoriensis Bezzi, 1911`, now OTHER); COL XR: none. Closes #235 --- crates/nameparser/src/pipeline/preflight.rs | 31 +++++++++++++++++-- crates/nameparser/tests/informal.rs | 34 +++++++++++++++++++++ 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/crates/nameparser/src/pipeline/preflight.rs b/crates/nameparser/src/pipeline/preflight.rs index 3d2ae2a..a42027a 100644 --- a/crates/nameparser/src/pipeline/preflight.rs +++ b/crates/nameparser/src/pipeline/preflight.rs @@ -204,11 +204,28 @@ const ALTERNATIVE_GENUS: &str = r"\p{Lu}\p{Ll}+(?:-\p{Lu}?\p{Ll}+)?"; /// `Aphaenogaster cf. rudis/texana` (#225), or with an infraspecific rank marker, `Sylvia cantillans /// subsp. inornata/iberiae`. The groups: genus, subgenus, the epithets, the rank marker, the /// alternatives. Read by [`read_alternatives`]. The marker is lazy, so that a qualifier stays the -/// epithet's: `Aus bus cf. cus/dus`. +/// epithet's: `Aus bus cf. cus/dus`. Before a slash or pipe an authorship may follow the epithets, +/// each alternative carrying its own (#235): `Chionodoxa forbesii BAKER / luciliae BOISS.`, +/// `Carduelis carduelis (Linnaeus, 1758) / Serinus canaria (Linnaeus, 1758)`. Alternative authors +/// stay authors, a capitalised word alone being no alternative: `Aus bus Smith/Jones`. After an +/// authorship the slash stands apart on one side at least, so that a word holding one is no +/// alternative: `Carnevali & M. Jua|arez`, `Prostanthera lasianthos Girraween/Polblue variant`. static ALTERNATIVE_EPITHETS: LazyLock = LazyLock::new(|| { let epithet = r"(?:(?:cf|aff|nr)\.?(?-u:\s+))?\p{Ll}[\p{Ll}\-]+"; Regex::new(&format!( - r"^({ALTERNATIVE_GENUS})(?:(?-u:\s+)\((\p{{Lu}}\p{{Ll}}+)\))?(?-u:\s+)({epithet}(?:(?-u:\s+)(?:(\p{{Ll}}+)\.?(?-u:\s+))??{epithet})?)(?:(?-u:\s*)[/|](?-u:\s*)|(?-u:\s+)or(?-u:\s+))(.+)$" + r"^({ALTERNATIVE_GENUS})(?:(?-u:\s+)\((\p{{Lu}}\p{{Ll}}+)\))?(?-u:\s+)({epithet}(?:(?-u:\s+)(?:(\p{{Ll}}+)\.?(?-u:\s+))??{epithet})?)(?:(?-u:\s+)(?P{ALTERNATIVE_AUTHORSHIP})(?:(?-u:\s+)[/|](?-u:\s*)|[/|](?-u:\s+))|(?-u:\s*)[/|](?-u:\s*)|(?-u:\s+)or(?-u:\s+))(?P.+)$" + )) + .unwrap() +}); +/// The authorship of one of several alternatives (#235): capitalised names, years, `&`, `et`, `ex`, +/// `in` and brackets, no lower-case word or code, so that a strain (`indica PD1998/pus`), a page +/// (`pl. 222 / figs 1 – 7`) or a host (`ex Ficus popenoei/nymphaefolia`) is no authorship. +const ALTERNATIVE_AUTHORSHIP: &str = r"\(?\p{Lu}[\p{L}.'\-]*\)?(?:,?(?-u:\s+)(?:\(?\p{Lu}[\p{L}.'\-]*\)?|\(?\d{4}\)?|&|et|ex|in))*,?"; +/// An alternative after one that carries an authorship: an epithet or a species, its genus written +/// out or abbreviated, perhaps with its own authorship, and nothing else. +static ALTERNATIVE_WITH_AUTHORSHIP: LazyLock = LazyLock::new(|| { + Regex::new(&format!( + r"^(?:{ALTERNATIVE_GENUS}(?-u:\s+)|\p{{Lu}}\.(?-u:\s*))?\p{{Ll}}[\p{{Ll}}\-]+(?:(?-u:\s+){ALTERNATIVE_AUTHORSHIP})?(?-u:\s*)$" )) .unwrap() }); @@ -305,7 +322,15 @@ fn read_alternatives(s: &str) -> Option> { } None => None, }; - let alternatives = &caps[5]; + let alternatives = &caps["alts"]; + // after an authorship every alternative is a whole one, with its own authorship or none + if caps.name("auth").is_some() + && !ALTERNATIVE_SEPARATOR + .split(alternatives) + .all(|alternative| ALTERNATIVE_WITH_AUTHORSHIP.is_match(alternative)) + { + return None; + } if let Some(species) = ALTERNATIVE_SPECIES.captures(alternatives) { if AUTHOR_LINK.contains(&&species[2]) { return None; diff --git a/crates/nameparser/tests/informal.rs b/crates/nameparser/tests/informal.rs index 74388fc..cb7c2b9 100644 --- a/crates/nameparser/tests/informal.rs +++ b/crates/nameparser/tests/informal.rs @@ -1724,11 +1724,45 @@ fn alternatives_of_two_genera_are_no_name() { "Entosthodon fascicularis or Physcomitrium pyriforme", "Abramis brama|Blicca bjoerkna", "Bilderdykia|Polygonum", + // each with its own authorship (#235): it was Carduelis carduelis by "Serinus canaria" + "Carduelis carduelis (Linnaeus, 1758) / Serinus canaria (Linnaeus, 1758)", + "Gymnophryxe pretoriensis Bezzi, 1911/ Archiclops pretoriensis Bezzi, 1911", ] { assert_unparsable(input, NameType::Other); } } +#[test] +fn alternatives_with_their_own_authorship() { + // #235: the authorship of the first ended the name, the alternative was left unparsed + for (input, phrase) in [ + ( + "Chionodoxa forbesii BAKER / luciliae BOISS.", + "forbesii BAKER / luciliae BOISS.", + ), + ("Salmo salar L. / S. trutta L.", "salar L. / S. trutta L."), + ( + "Abies alba Mill. / A. nordmanniana (Steven) Spach", + "alba Mill. / A. nordmanniana (Steven) Spach", + ), + ] { + assert_alternatives(input, None, None, phrase); + } + // alternative authors stay authors, and a code, a strain or a word holding a slash or pipe is + // no alternative + for input in [ + "Aus bus Jarocki / Schinz", + "Geitlerinema acuminatum Shafa/soil/10", + "Myrmecophila olmstediae Carnevali & M. Jua|arez", + "Prostanthera lasianthos Girraween/Polblue variant", + ] { + let ParseResult::Parsed(pn) = nameparser::parse(input, None, None, None) else { + panic!("`{input}` is parsed"); + }; + assert!(pn.specific_epithet.is_some(), "{input}"); + } +} + // ---- A label joined to the first word by a dash or an underscore (#209, #210) ---------------- #[test] From 49a252382277f87817697da6dde421b895650c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Wed, 18 Nov 2026 18:30:12 +0100 Subject: [PATCH 02/16] fix(parser): a bracket holding = is a synonym note (#241) `Pleurosorus (= Asplenium) rutifolius (R.Br.) Fee` took the bracket for the basionym author or the subgenus and lost the epithet, `Tillandsia schreiteri Lillo & Castellanos (=T.sphaerocephala Baker?)` made the synonym an author. Only a trailing `[= Grislea L. 1753]` was set aside. Now any round or square bracket holding `=` is: it is left unparsed, the name is doubtful as before, and the rest parses (`Pleurosorus rutifolius (R.Br.) Fee`). After an indet marker the bracket is the voucher of the unnamed species and stays its phrase (`Euodia sp. (= RFK/3921)`). A synonym reference alone (`=ixioides?`) is OTHER. ChecklistBank: 246 of 695 rows with `=` in brackets; COL XR: none. Closes #241 --- crates/nameparser/src/pipeline/preflight.rs | 2 + .../nameparser/src/pipeline/stripandstash.rs | 42 ++++++++++++++++++- crates/nameparser/tests/taxonomic_notes.rs | 33 +++++++++++++++ 3 files changed, 76 insertions(+), 1 deletion(-) diff --git a/crates/nameparser/src/pipeline/preflight.rs b/crates/nameparser/src/pipeline/preflight.rs index a42027a..0340f6b 100644 --- a/crates/nameparser/src/pipeline/preflight.rs +++ b/crates/nameparser/src/pipeline/preflight.rs @@ -1051,6 +1051,8 @@ pub fn run(original: &str, ctx: &mut ParseContext) -> Result<(), ParseError> { if GEN_NOV.is_match(&s) // Dead-but-faithful (same shape as the PR2_LIKE note above): the `@`-check in the delete-marker gate above (Preflight.java:212) already returns for any `s.starts_with('@')`, so this second one (Preflight.java:278) can never fire — ported verbatim anyway to stay faithful. || s.starts_with('@') + // Rust-only: a synonym reference alone, `=ixioides?` (#241), names nothing + || s.starts_with('=') { return Err(ParseError::new(NameType::Other, None, s)); } diff --git a/crates/nameparser/src/pipeline/stripandstash.rs b/crates/nameparser/src/pipeline/stripandstash.rs index 3d43de5..37554cf 100644 --- a/crates/nameparser/src/pipeline/stripandstash.rs +++ b/crates/nameparser/src/pipeline/stripandstash.rs @@ -3986,9 +3986,49 @@ fn stash_synonym_bracket(ctx: &mut ParseContext, s: String) -> String { } return kept; } - s + // Rust-only: a bracket holding "=" anywhere, round or square, is the same kind of note, an + // accepted or synonymous name (#241): `Pleurosorus (= Asplenium) rutifolius (R.Br.) Fee`, + // `Tillandsia schreiteri Lillo & Castellanos (=T.sphaerocephala Baker?)`. It was read as the + // subgenus, an author or an epithet. Set aside the same way, the rest parsed. After an indet + // marker it belongs to the phrase of the unnamed species: `Euodia sp. (= RFK/3921)`, + // `Dichanthelium species 12 (=chrysopsidifolium)`. + let notes: Vec<_> = EQUALS_BRACKET + .find_iter(&s) + .filter(|m| { + !s[..m.start()].split_whitespace().any(|w| { + matches!( + w.trim_end_matches('.').to_lowercase().as_str(), + "sp" | "spp" | "spec" | "species" + ) + }) + }) + .collect(); + if notes.is_empty() { + return s; + } + let text: Vec<&str> = notes.iter().map(|m| java_trim(m.as_str())).collect(); + ctx.set_pending_unparsed(&text.join(" ")); + ctx.name.doubtful = true; + let mut kept = String::with_capacity(s.len()); + let mut last = 0; + for m in ¬es { + kept.push_str(&s[last..m.start()]); + kept.push(' '); + last = m.end(); + } + kept.push_str(&s[last..]); + let mut kept = collapse_whitespace(&kept); + while kept.ends_with(',') { + kept.pop(); + kept = java_trim(&kept).to_string(); + } + kept } +/// A round or square bracket holding "=", see [`stash_synonym_bracket`]. +static EQUALS_BRACKET: LazyLock = + LazyLock::new(|| Regex::new(r"(?-u:\s*)[(\[][^()\[\]]*=[^()\[\]]*[)\]]").unwrap()); + // ---- Shared helper: normaliseNomNote (used by steps 29 and 30) ---- /// Java ET_WORD (StripAndStash.java:290): `\bet\b`, no flags. Whole-wrap (has `\b`, no diff --git a/crates/nameparser/tests/taxonomic_notes.rs b/crates/nameparser/tests/taxonomic_notes.rs index 1be63af..cf4ccfc 100644 --- a/crates/nameparser/tests/taxonomic_notes.rs +++ b/crates/nameparser/tests/taxonomic_notes.rs @@ -990,3 +990,36 @@ fn lower_case_s_dot_that_is_no_sensu() { .published_in_year(Some(1969)) .nothing_else(); } + +/// #241: a bracket holding "=" anywhere is a note on an accepted or synonymous name, set aside as +/// the trailing `[= Grislea L. 1753]` is; it was read as the subgenus, an author or an epithet. +#[test] +fn a_bracket_holding_equals_is_set_aside() { + assert_name("Pleurosorus (= Asplenium) rutifolius (R.Br.) Fee") + .species("Pleurosorus", "rutifolius") + .bas_authors(None, &["R.Br."]) + .comb_authors(None, &["Fee"]) + .doubtful() + .partial("(= Asplenium)") + .nothing_else(); + assert_name("Tillandsia schreiteri Lillo & Castellanos (=T.sphaerocephala Baker?)") + .species("Tillandsia", "schreiteri") + .comb_authors(None, &["Lillo", "Castellanos"]) + .doubtful() + .partial("(=T.sphaerocephala Baker?)") + .nothing_else(); + assert_name("Sulcorebutia albida (alba Rausch ? = canigueralii)") + .species("Sulcorebutia", "albida") + .doubtful() + .partial("(alba Rausch ? = canigueralii)") + .nothing_else(); + // a synonym reference alone names nothing + assert_unparsable("=ixioides?", NameType::Other); + // after an indet marker it is the voucher of the unnamed species + assert_informal("Euodia sp. (= RFK/3921)") + .taxon("Euodia") + .taxon_rank(Rank::Genus) + .rank(Rank::Species) + .phrase("sp. (= RFK/3921)") + .nothing_else(); +} From 60b40a410af717513ef25a1b4c71f74a0be4d12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Wed, 18 Nov 2026 19:26:57 +0100 Subject: [PATCH 03/16] fix(parser): a capitalised epithet after a qualifier (#233) `Phrynopus cf. Barlenae` and `Teucrium cf. Cyprium Boiss.` kept the capitalised word in the phrase `cf. Barlenae`, as a genus compared with. The capitalised epithet rule (`Ormosia Bolivarensis`) now looks past a cf., aff. or nr. too, and the qualifier doubts the epithet: species `barlenae`, qualifier `cf.`, with the warning "capitalised epithet put in lower case". After a qualifier the word is mostly a genus or higher taxon compared with, so only a Latin epithet ending or an abbreviated author counts as evidence, in the name or given apart. A rank hint does not, nor does an author with a year, which is mostly the anchor genus' (`Dicranoplia cf. Anomala` + `Reitter 1903`), nor a family-group name. Without evidence the word stays the phrase: `Pristimantis cf. Ventrimarmoratus`, `Onthophagus cf. Aphodius`. ChecklistBank: 9 of 1,492 rows with a capitalised word after cf./aff./nr. (`Lingula cf. Ioulanensis`, `Picalgoides aff. Pteroglossorum`); `Halictus cf. Nomioides`, `Metacrias cf. Tineldae` and `Necatoridi cf. Necatoreae` follow the Latin ending as they would without the qualifier. COL XR: none. Closes #233 --- .../nameparser/src/pipeline/stripandstash.rs | 36 +++++++++++++++---- .../tests/common/path_divergences.tsv | 1 + crates/nameparser/tests/informal.rs | 25 +++++++++++++ 3 files changed, 55 insertions(+), 7 deletions(-) diff --git a/crates/nameparser/src/pipeline/stripandstash.rs b/crates/nameparser/src/pipeline/stripandstash.rs index 37554cf..0736fd7 100644 --- a/crates/nameparser/src/pipeline/stripandstash.rs +++ b/crates/nameparser/src/pipeline/stripandstash.rs @@ -2575,11 +2575,12 @@ fn lower_capitalised_marker(s: String) -> String { } } -/// A genus and a capitalised word (group 2) after it, perhaps with a capitalised part after a -/// hyphen (`Sancti-Vincenti`), and what follows (group 3). +/// A genus, perhaps a qualifier (group 2), and a capitalised word (group 3) after it, perhaps with +/// a capitalised part after a hyphen (`Sancti-Vincenti`), and what follows (group 4). Group 1 is +/// all before the word. static GENUS_CAPITALISED_WORD: LazyLock = LazyLock::new(|| { Regex::new( - r"^(\p{Lu}\p{Ll}+(?-u:\s+))(\p{Lu}[\p{Ll}\-]+(?:\p{Lu}[\p{Ll}\-]*)?)(?:(?-u:\s+)(.+))?$", + r"^(\p{Lu}\p{Ll}+(?-u:\s+)((?:cf|aff|nr)\.?(?-u:\s+))?)(\p{Lu}[\p{Ll}\-]+(?:\p{Lu}[\p{Ll}\-]*)?)(?:(?-u:\s+)(.+))?$", ) .unwrap() }); @@ -2596,6 +2597,12 @@ static FAMILY_GROUP_ENDING: LazyLock = static LATIN_COMPOUND_EPITHET: LazyLock = LazyLock::new(|| Regex::new(r"^(?:Sancti|Sanctae|Novae|Novi)-\p{L}+$").unwrap()); +/// An abbreviated author, perhaps in a team or after a bracketed one: `Boiss.`, `(L.) DC.`, `Hook. & +/// Arn.` +static ABBREVIATED_AUTHOR: LazyLock = LazyLock::new(|| { + Regex::new(r"^(?:\(\p{Lu}[\p{L}'\-]*\.\)(?-u:\s*))?\p{Lu}[\p{L}'\-]*\.(?:(?-u:\s*)(?:&|et|ex)(?-u:\s*)\p{Lu}[\p{L}'\-]*\.?)*$").unwrap() +}); + /// An author with a year, perhaps in brackets: `Linnæus, 1758`, `(Agassiz, 1843)`. static AUTHOR_WITH_YEAR: LazyLock = LazyLock::new(|| { Regex::new(r"^\(?\p{Lu}[\p{L}'.\- ]*,?(?-u:\s*)(?:1[789]\d\d|20[0-2]\d)\)?$").unwrap() @@ -2608,13 +2615,16 @@ static AUTHOR_WITH_YEAR: LazyLock = LazyLock::new(|| { /// below, an authorship following; when the authorship comes separately, repeating what follows the word or not starting /// with it; or when it ends as only a Latin epithet does, nothing or an author with a year after /// it. A -/// genus with a surname of two words, `Homalaspis Milne Edwards, 1863`, has none of these. +/// genus with a surname of two words, `Homalaspis Milne Edwards, 1863`, has none of these. After a +/// qualifier an authorship following is evidence too (#233): `Phrynopus cf. Barlenae`, `Teucrium +/// cf. Cyprium Boiss.` A word with none stays the genus compared with: `Onthophagus cf. Aphodius`. fn lower_capitalised_epithet(ctx: &mut ParseContext, s: String) -> String { let Some(caps) = GENUS_CAPITALISED_WORD.captures(&s) else { return s; }; - let word = &caps[2]; - let tail = caps.get(3).map(|m| m.as_str()); + let word = &caps[3]; + let tail = caps.get(4).map(|m| m.as_str()); + let qualified = caps.get(2).is_some(); if caps[1].trim_end() == "Candidatus" || token::is_particle(&word.to_lowercase()) { return s; } @@ -2641,7 +2651,19 @@ fn lower_capitalised_epithet(ctx: &mut ParseContext, s: String) -> String { let by_ending = (compound || (LATIN_EPITHET_ENDING.is_match(word) && !FAMILY_GROUP_ENDING.is_match(word))) && tail.is_none_or(|t| AUTHOR_WITH_YEAR.is_match(t)); - if !(hinted || by_column || by_ending) { + // After a qualifier the word is mostly a genus or higher taxon compared with, so a rank hint + // tells nothing, nor does an author with a year, mostly the anchor genus' (`Dicranoplia cf. + // Anomala` + `Reitter 1903`); an abbreviated author does (`Teucrium cf. Cyprium Boiss.`). + let evidence = if qualified { + // never a family-group name compared with: `Attacapa cf. Noctuidae` + !FAMILY_GROUP_ENDING.is_match(word) + && (by_ending + || tail.is_some_and(|t| ABBREVIATED_AUTHOR.is_match(t)) + || (tail.is_none() && column.is_some_and(|c| ABBREVIATED_AUTHOR.is_match(c)))) + } else { + hinted || by_column || by_ending + }; + if !evidence { return s; } ctx.name.add_warning(warnings::CAPITALISED_EPITHET); diff --git a/crates/nameparser/tests/common/path_divergences.tsv b/crates/nameparser/tests/common/path_divergences.tsv index dd1f9bf..a96d5dc 100644 --- a/crates/nameparser/tests/common/path_divergences.tsv +++ b/crates/nameparser/tests/common/path_divergences.tsv @@ -45,3 +45,4 @@ nosplit Mangelia sl. sp. SPECIES - structural: the sensu note stands between t nosplit Mangelia s.l. sp. SPECIES - structural: the sensu note stands between the genus and the sp. of its indetermined species (#251) nosplit Mangelia s. l. sp. SPECIES - structural: the sensu note stands between the genus and the sp. of its indetermined species (#251) nosplit Mangelia s.s. sp.1 - structural: the sensu note stands between the genus and the sp. of its indetermined species (#251) +nosplit Teucrium cf. Cyprium Boiss. - structural: only the author tells the capitalised word after the qualifier is an epithet (#233) diff --git a/crates/nameparser/tests/informal.rs b/crates/nameparser/tests/informal.rs index cb7c2b9..3e9a0c9 100644 --- a/crates/nameparser/tests/informal.rs +++ b/crates/nameparser/tests/informal.rs @@ -714,6 +714,31 @@ fn a_genus_repeated_after_cf_is_skipped_not_read_as_an_author() { /// the qualifier is a genuinely different taxon — `Veneridae cf. Phacosoma sp` anchors on a family /// and compares to another genus, `Onthophagus cf. Aphodius` compares two genera with no epithet at /// all — so those keep their current reading rather than having an epithet invented for them. +/// #233: a capitalised epithet after a qualifier is put in lower case on evidence, a Latin ending or +/// an author after it, and the qualifier doubts it; a word without is the genus compared with. +#[test] +fn a_capitalised_epithet_after_a_qualifier() { + assert_name("Phrynopus cf. Barlenae") + .species("Phrynopus", "barlenae") + .qualifiers(&[(NamePart::Specific, "cf.")]) + .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::CAPITALISED_EPITHET]) + .nothing_else(); + assert_name("Teucrium cf. Cyprium Boiss.") + .species("Teucrium", "cyprium") + .qualifiers(&[(NamePart::Specific, "cf.")]) + .comb_authors(None, &["Boiss."]) + .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::CAPITALISED_EPITHET]) + .nothing_else(); + assert_informal("Pristimantis cf. Ventrimarmoratus") + .taxon("Pristimantis") + .taxon_rank(Rank::Genus) + .rank(Rank::Species) + .phrase("cf. Ventrimarmoratus") + .nothing_else(); +} + #[test] fn a_different_genus_after_cf_is_not_skipped() { // No species epithet is reachable: the qualifier opens the informal phrase, which keeps the From d48c00d80adefea4f16dc27987ad536c3790c0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Wed, 18 Nov 2026 19:52:19 +0100 Subject: [PATCH 04/16] fix(parser): a quoted epithet before a manuscript note (#231) `Lepidobolus 'quadratus' (sp. nov. ined.` made "'quadratus' sp.nov." an author of the uninomial Lepidobolus. A quoted epithet followed by a note of a new or unpublished species (`sp. nov.`, `sp. nov. ined.`, `ined.`, `ms.`), in brackets, its bracket left open or bare, is a manuscript name and no cultivar: the species `quadratus`, flagged manuscript, with the note as nomenclatural note. A quoted word alone stays a cultivar (`Lepidobolus 'quadratus'`). ChecklistBank: 4 rows (`Aspidella 'noddy' ined.`, `Celmisia 'pulchella' ms`, `Coccomyces "lignicola" ined.`); COL XR: none. Closes #231 --- .../nameparser/src/pipeline/stripandstash.rs | 22 +++++++++++++++++ .../nameparser/tests/anon_and_manuscript.rs | 24 +++++++++++++++++++ .../tests/common/path_divergences.tsv | 4 ++++ 3 files changed, 50 insertions(+) diff --git a/crates/nameparser/src/pipeline/stripandstash.rs b/crates/nameparser/src/pipeline/stripandstash.rs index 0736fd7..3a55586 100644 --- a/crates/nameparser/src/pipeline/stripandstash.rs +++ b/crates/nameparser/src/pipeline/stripandstash.rs @@ -128,6 +128,7 @@ pub(crate) fn run(ctx: &mut ParseContext) { s = lower_shouted_qualifier(s); s = strip_rank_nova(ctx, s); s = strip_quoted_attributed_author(s); + s = unquote_manuscript_epithet(s); s = strip_quoted_cultivar(ctx, s); s = strip_bare_cultivar_marker(ctx, s); s = strip_extinct_dagger(ctx, s); @@ -3751,6 +3752,27 @@ static AUTHORSHIP_QUOTED_ATTRIBUTED: LazyLock = LazyLock::new(|| { /// /// All three spot-checked against the Java CLI oracle's `cultivarEpithet`/`rank`/`code`/ /// `specificAuthorship` output shape. +/// A quoted epithet followed by a note of a new or unpublished species, bracketed, its bracket left +/// open, or bare: `Lepidobolus 'quadratus' (sp. nov. ined.`, `Lepidobolus 'quadratus' ms.` (#231). +/// Groups: the genus, the epithet, the note. +static QUOTED_MANUSCRIPT_EPITHET: LazyLock = LazyLock::new(|| { + Regex::new( + r#"^(\p{Lu}\p{Ll}+)(?-u:\s+)['‘’"]([\p{Ll}\-]+)['‘’"](?-u:\s+)\(?((?i:(?:sp|spec)\.?(?-u:\s*)nov\.?(?:,?(?-u:\s*)ined\.?)?|ined\.?|mss?\.?|msc\.?))\)?(?-u:\s*)$"#, + ) + .unwrap() +}); + +/// Rust-only: the quotes of an epithet that is not yet published, see [`QUOTED_MANUSCRIPT_EPITHET`], +/// mark a manuscript name, no cultivar: `Lepidobolus 'quadratus' (sp. nov. ined.` reads as +/// `Lepidobolus quadratus sp. nov. ined.`, the species `quadratus` with that note and the +/// manuscript flag. The quoted word with the note became an author ("'quadratus' sp.nov."). +fn unquote_manuscript_epithet(s: String) -> String { + match QUOTED_MANUSCRIPT_EPITHET.captures(&s) { + Some(caps) => format!("{} {} {}", &caps[1], &caps[2], &caps[3]), + None => s, + } +} + fn strip_quoted_cultivar(ctx: &mut ParseContext, mut s: String) -> String { let cm = QUOTED_CULTIVAR_END.captures(&s).ok().flatten(); let cm_found = cm.is_some(); diff --git a/crates/nameparser/tests/anon_and_manuscript.rs b/crates/nameparser/tests/anon_and_manuscript.rs index 9ae8724..0322577 100644 --- a/crates/nameparser/tests/anon_and_manuscript.rs +++ b/crates/nameparser/tests/anon_and_manuscript.rs @@ -145,3 +145,27 @@ fn a_manuscript_marker_inside_a_bracket() { .phrase("sp. (pulchella ms)") .nothing_else(); } + +/// #231: a quoted epithet before a note of a new or unpublished species is a manuscript name, no +/// cultivar; the quoted word with the note became an author. +#[test] +fn a_quoted_epithet_before_a_manuscript_note() { + for (input, note) in [ + ("Lepidobolus 'quadratus' (sp. nov. ined.", "sp. nov. ined."), + ("Lepidobolus 'quadratus' (sp. nov. ined.)", "sp. nov. ined."), + ("Lepidobolus 'quadratus' ms.", "ms."), + ("Coccomyces \"lignicola\" ined.", "ined."), + ] { + let genus = input.split_whitespace().next().unwrap(); + let epithet = input.split(['\'', '"']).nth(1).unwrap(); + assert_name(input) + .species(genus, epithet) + .manuscript() + .nom_note(note) + .nothing_else(); + } + // a quoted word alone stays a cultivar + assert_name("Lepidobolus 'quadratus'") + .cultivar("Lepidobolus", "quadratus") + .nothing_else(); +} diff --git a/crates/nameparser/tests/common/path_divergences.tsv b/crates/nameparser/tests/common/path_divergences.tsv index a96d5dc..26669bb 100644 --- a/crates/nameparser/tests/common/path_divergences.tsv +++ b/crates/nameparser/tests/common/path_divergences.tsv @@ -46,3 +46,7 @@ nosplit Mangelia s.l. sp. SPECIES - structural: the sensu note stands between nosplit Mangelia s. l. sp. SPECIES - structural: the sensu note stands between the genus and the sp. of its indetermined species (#251) nosplit Mangelia s.s. sp.1 - structural: the sensu note stands between the genus and the sp. of its indetermined species (#251) nosplit Teucrium cf. Cyprium Boiss. - structural: only the author tells the capitalised word after the qualifier is an epithet (#233) +nosplit Lepidobolus 'quadratus' (sp. nov. ined. - structural: without its note the quoted word is a cultivar (#231) +nosplit Lepidobolus 'quadratus' (sp. nov. ined.) - structural: without its note the quoted word is a cultivar (#231) +nosplit Lepidobolus 'quadratus' ms. - structural: without its note the quoted word is a cultivar (#231) +nosplit Coccomyces "lignicola" ined. - structural: without its note the quoted word is a cultivar (#231) From 2d22a5d7d73cf20820690a557b1701fdde066b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Wed, 18 Nov 2026 21:44:47 +0100 Subject: [PATCH 05/16] fix(parser): single letters and the misreadings behind them (#246) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most single-letter genera and epithets were misreadings. `Dracaena c.f. afromontana Mildbr` took the `c` of a two-dot cf. as the epithet: a lower-case `c.f.` before an epithet is now cf. (the initials of `C.F. Liang` stay initials). `Forcipata n sp. ancantha` and `Emblyna n. sp1` took the `n` of n. sp. as the epithet: a dotless n and a marker glued to its number now open the phrase of a new species as `n. sp.` does, the phrase kept as written, and the formatter adds no `sp.` before it. A lone letter in the infraspecific slot without a dot is a designation, so the name is informal as with the species slot (`Polypedates leucomystax b`); with a dot it stays an abbreviated epithet (`Diacamma rugosum r.`). What is left gets the new warning "single letter genus or epithet": `M mus`, `Galium spurium var. L.`, `Collettea a`, the Greek-lettered and lettered varieties (`var. ß`, `var. b`). Not the `?` of a missing genus, and not an abbreviated genus, which keeps its dot and its own warning (`M. mus`). 22 golden rows gain the warning. ChecklistBank: of 49,312 candidate rows 2,651 gain only the warning, 256 become informal and 23 other n sp. names become phrases; COL XR: 199 rows, nearly all the warning. Closes #246 --- crates/nameparser/src/format.rs | 4 +- crates/nameparser/src/model/enums.rs | 2 + .../src/pipeline/authorship_split.rs | 10 ++-- crates/nameparser/src/pipeline/mod.rs | 19 +++++++ crates/nameparser/src/pipeline/name_tokens.rs | 31 +++++++++-- .../nameparser/src/pipeline/stripandstash.rs | 12 ++++ crates/nameparser/tests/impl_05.rs | 2 + crates/nameparser/tests/impl_08.rs | 1 + crates/nameparser/tests/informal.rs | 55 +++++++++++++++++++ crates/nameparser/tests/rare_rank_markers.rs | 2 + crates/nameparser/tests/taxonomic_notes.rs | 3 + crates/nameparser/tests/worms_temporary.rs | 3 + testdata/golden/expected-parse.jsonl | 44 +++++++-------- 13 files changed, 154 insertions(+), 34 deletions(-) diff --git a/crates/nameparser/src/format.rs b/crates/nameparser/src/format.rs index 1da580d..4e5a9be 100644 --- a/crates/nameparser/src/format.rs +++ b/crates/nameparser/src/format.rs @@ -54,10 +54,10 @@ static AL: LazyLock = LazyLock::new(|| Regex::new(r"^al\.?$").unwrap()); /// 01_E13`), which rendered "Wolbachia sp. endosymbiont of …". And with the new-species markers /// `n. sp.` and `nsp` (#139), the unnamed genus of `Carabidae gen. sp.` (#174), and the aggregate /// marker of `Acalitus agg. brevitarsus/phyllereus`, which rendered "Acalitus agg. agg. …", and a -/// marker glued to its number, `Dynestinae sp2` (#242). +/// marker glued to its number, `Dynestinae sp2` (#242), and the dotless `n sp` (#246). static PHRASE_SPECIES_MARKER: LazyLock = LazyLock::new(|| { Regex::new( - r"(?i)^(?:(?:spp?|spec)\d|(?:species|spec|spp|sp|nsp|agg|n\.(?-u:\s*)sp|cf|aff|nr|near|[a-z]*(?:bacteri(?:um|a)|archae(?:on|a|ote)|symbionts?))(?-u:\b)|(?:n_)?sp(?:ec)?_|n_gen(?-u:\b)|gen(?:\.|(?-u:\s))).*$", + r"(?i)^(?:(?:spp?|spec)\d|(?:species|spec|spp|sp|nsp|agg|n\.?(?-u:\s*)sp\d*|cf|aff|nr|near|[a-z]*(?:bacteri(?:um|a)|archae(?:on|a|ote)|symbionts?))(?-u:\b)|(?:n_)?sp(?:ec)?_|n_gen(?-u:\b)|gen(?:\.|(?-u:\s))).*$", ) .unwrap() }); diff --git a/crates/nameparser/src/model/enums.rs b/crates/nameparser/src/model/enums.rs index 362b3b1..f6c45a5 100644 --- a/crates/nameparser/src/model/enums.rs +++ b/crates/nameparser/src/model/enums.rs @@ -1162,6 +1162,8 @@ pub mod warnings { /// Rust-only so far: a species epithet written with a capital, as Linnaeus did (`Ovis Aries`), /// was put in lower case (ICZN Art. 28). pub const CAPITALISED_EPITHET: &str = "capitalised epithet put in lower case"; + /// Rust-only (#246): no genus or epithet has a single letter. + pub const SINGLE_LETTER: &str = "single letter genus or epithet"; } #[cfg(test)] diff --git a/crates/nameparser/src/pipeline/authorship_split.rs b/crates/nameparser/src/pipeline/authorship_split.rs index 828386b..d26c9a9 100644 --- a/crates/nameparser/src/pipeline/authorship_split.rs +++ b/crates/nameparser/src/pipeline/authorship_split.rs @@ -269,14 +269,16 @@ pub fn find_boundary(tokens: &[Token], ctx: &ParseContext) -> usize { } // "n. sp." before any epithet is the species marker "sp." of a new species // ("Jardinella n. sp. keel", #139): walk on to the "sp" + let dot = usize::from(tokens.get(i + 1).is_some_and(|d| d.kind == TokenKind::Dot)); if t.text == "n" && !have_epithet - && tokens.get(i + 1).is_some_and(|d| d.kind == TokenKind::Dot) - && tokens.get(i + 2).is_some_and(|m| { - m.kind == TokenKind::Word && m.text.eq_ignore_ascii_case("sp") + && tokens.get(i + 1 + dot).is_some_and(|m| { + m.kind == TokenKind::Word + && (m.text.eq_ignore_ascii_case("sp") + || crate::pipeline::name_tokens::is_glued_indet_marker(&m.text)) }) { - i += 2; + i += 1 + dot; continue; } // cf./aff. qualifiers and indet markers — keep walking diff --git a/crates/nameparser/src/pipeline/mod.rs b/crates/nameparser/src/pipeline/mod.rs index b1fd642..dca316e 100644 --- a/crates/nameparser/src/pipeline/mod.rs +++ b/crates/nameparser/src/pipeline/mod.rs @@ -537,6 +537,7 @@ pub fn run( apply_placeholder_tail(&mut ctx); assemble::flag_indetermined(&mut ctx.name); flag_numbered_authors(&mut ctx.name); + flag_single_letters(&mut ctx.name); apply_pending_qualifier(&mut ctx); Ok(ctx.name) @@ -559,6 +560,24 @@ fn apply_pending_qualifier(ctx: &mut ParseContext) { ctx.name.type_ = NameType::Informal; } +/// A genus or an epithet of a single letter is no name of a taxon but a designation or a broken +/// record (#246): `M mus`, `Polypedates leucomystax b`, `Galium spurium var. L.` An abbreviated +/// genus keeps its dot and its own warning: `M. mus`. +fn flag_single_letters(name: &mut ParsedName) { + // not the `?` standing for a missing genus (`? alba Smith`) + let single = |part: &Option| { + part.as_deref() + .is_some_and(|w| w.chars().count() == 1 && w != "?") + }; + if single(&name.genus) + || single(&name.uninomial) + || single(&name.specific_epithet) + || single(&name.infraspecific_epithet) + { + name.add_warning(warnings::SINGLE_LETTER); + } +} + /// An author with a digit in it is no person's name: `Aus bus Smith2, 1900` (#213). fn flag_numbered_authors(name: &mut ParsedName) { let numbered = [&name.combination_authorship, &name.basionym_authorship] diff --git a/crates/nameparser/src/pipeline/name_tokens.rs b/crates/nameparser/src/pipeline/name_tokens.rs index 2395a99..13033ee 100644 --- a/crates/nameparser/src/pipeline/name_tokens.rs +++ b/crates/nameparser/src/pipeline/name_tokens.rs @@ -95,7 +95,7 @@ pub(crate) fn is_aggregate_marker(w: &str) -> bool { /// A species marker glued to its number, the designation of an unnamed species: `Dynestinae sp2`, /// `Mus spec2` (#242). It became the epithet `sp2`. The phrase keeps it as written. -fn is_glued_indet_marker(w: &str) -> bool { +pub(crate) fn is_glued_indet_marker(w: &str) -> bool { let letters = w.trim_end_matches(|c: char| c.is_ascii_digit()); letters.len() < w.len() && matches!(letters, "sp" | "spp" | "spec") } @@ -137,6 +137,9 @@ pub(crate) fn classify(ctx: &mut ParseContext, boundary: usize) { let mut indet = false; // a lone-letter species designation (`Collettea a`), see step 8 below let mut letter_designation = false; + // the last epithet read is a lone letter with no dot after it: a designation in the + // infraspecific slot too (`Polypedates leucomystax b`), not an abbreviation (`rugosum r.`, #246) + let mut last_epithet_letter = false; // A bare supraspecific indet ("Genus sp." with no distinguishing tail) — stays flagged // INDETERMINED even though its phrase now carries the verbatim marker (see the top-check // in the indet branch and the warning block near the end of this fn). @@ -514,16 +517,18 @@ pub(crate) fn classify(ctx: &mut ParseContext, boundary: usize) { continue; } // "n. sp." before any epithet: the marker of a new species, opening its phrase - // ("Jardinella n. sp. keel", #139) + // ("Jardinella n. sp. keel", #139), also without the dot or with its number glued + // ("Forcipata n sp. ancantha", "Emblyna n. sp1", #246) + let dot = usize::from(ts.get(i + 1).is_some_and(|d| d.kind == TokenKind::Dot)); if t.text == "n" && lower_epithets.is_empty() - && ts.get(i + 1).is_some_and(|d| d.kind == TokenKind::Dot) - && ts.get(i + 2).is_some_and(|m| { - m.kind == TokenKind::Word && m.text.eq_ignore_ascii_case("sp") + && ts.get(i + 1 + dot).is_some_and(|m| { + m.kind == TokenKind::Word + && (m.text.eq_ignore_ascii_case("sp") || is_glued_indet_marker(&m.text)) }) { nova_start = Some(t.start); - i += 2; + i += 1 + dot; continue; } // 2. indet markers — sp./spec./indet @@ -1076,6 +1081,12 @@ pub(crate) fn classify(ctx: &mut ParseContext, boundary: usize) { || (nx.kind == TokenKind::Word && starts_lower(nx)) }); } + last_epithet_letter = t.text.len() == 1 + && t.text.as_bytes()[0].is_ascii_lowercase() + && !ctx + .tokens + .get(i + 1) + .is_some_and(|nx| nx.kind == TokenKind::Dot); lower_epithets.push(t.text.clone()); i += 1; continue; @@ -1230,6 +1241,14 @@ pub(crate) fn classify(ctx: &mut ParseContext, boundary: usize) { if letter_designation && specific.is_some() { ctx.name.type_ = NameType::Informal; } + // a lone letter in the infraspecific slot is a designation too: `Polypedates leucomystax b` + // (#246), as after a rank marker (`Galium spurium var. L.`); with a dot it is an abbreviation + if specific.is_some() + && last_epithet_letter + && infraspecific.as_deref() == lower_epithets.last().map(String::as_str) + { + ctx.name.type_ = NameType::Informal; + } if indet { ctx.name.type_ = NameType::Informal; if infraspecific.is_none() { diff --git a/crates/nameparser/src/pipeline/stripandstash.rs b/crates/nameparser/src/pipeline/stripandstash.rs index 3a55586..7228719 100644 --- a/crates/nameparser/src/pipeline/stripandstash.rs +++ b/crates/nameparser/src/pipeline/stripandstash.rs @@ -126,6 +126,7 @@ pub(crate) fn run(ctx: &mut ParseContext) { s = normalise_cultivar_spelling(ctx, s); s = strip_cultivar_group_grex(ctx, s); s = lower_shouted_qualifier(s); + s = normalise_spelt_out_markers(s); s = strip_rank_nova(ctx, s); s = strip_quoted_attributed_author(s); s = unquote_manuscript_epithet(s); @@ -3667,6 +3668,17 @@ static SHOUTED_QUALIFIER: LazyLock = LazyLock::new(|| { Regex::new(r"^(\p{Lu}\p{Ll}+(?:\s+\p{Ll}+)?\s+)(CF|AFF)\.?(\s+\p{Ll}.*|\s*)$").unwrap() }); +/// `c.f.` written with two dots for cf., in lower case before an epithet: `Dracaena c.f. +/// afromontana Mildbr` (#246). The `c` became the epithet. Not the initials of an author: `C.F. +/// Liang`. +static SPELT_OUT_CF: LazyLock = + LazyLock::new(|| Regex::new(r"(^|(?-u:\s))c\.(?-u:\s?)f\.((?-u:\s+)\p{Ll})").unwrap()); + +/// See [`SPELT_OUT_CF`]. +fn normalise_spelt_out_markers(s: String) -> String { + SPELT_OUT_CF.replace_all(&s, "${1}cf.${2}").into_owned() +} + /// Lower-cases a [`SHOUTED_QUALIFIER`], which was read as an author "Cf" — not after an indet marker, /// where it is a strain code ("Bacillus sp. CF"), nor among authors' initials ("Dubois, CF 1839"). fn lower_shouted_qualifier(s: String) -> String { diff --git a/crates/nameparser/tests/impl_05.rs b/crates/nameparser/tests/impl_05.rs index ae706f0..fa8d427 100644 --- a/crates/nameparser/tests/impl_05.rs +++ b/crates/nameparser/tests/impl_05.rs @@ -94,6 +94,7 @@ fn norwegian_radiolaria() { .infra_species("Hexaconthium", "pachydermum", Rank::Form, "A") .comb_authors(Some("1998"), &["Cortese", "Bjørklund"]) .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); assert_name("Tripodiscium gephyristes (Hülseman, 1963) BJ&KR-Atsdatabanken") @@ -449,6 +450,7 @@ fn alpha_beta_theta_names() { assert_name("Cyclotus amethystinus var. β Guppy, 1868") .infra_species("Cyclotus", "amethystinus", Rank::Variety, "β") .comb_authors(Some("1868"), &["Guppy"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); } diff --git a/crates/nameparser/tests/impl_08.rs b/crates/nameparser/tests/impl_08.rs index a2dae35..4334b99 100644 --- a/crates/nameparser/tests/impl_08.rs +++ b/crates/nameparser/tests/impl_08.rs @@ -587,6 +587,7 @@ fn indet_names() { // a species rank hint keeps an abbreviated species epithet assert_name_rank("Zygaena f.", Rank::Species) .species("Zygaena", "f") + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); let n = nameparser::parse_name("Polygonum spec.", None, None, None) diff --git a/crates/nameparser/tests/informal.rs b/crates/nameparser/tests/informal.rs index 3e9a0c9..81b9943 100644 --- a/crates/nameparser/tests/informal.rs +++ b/crates/nameparser/tests/informal.rs @@ -811,6 +811,7 @@ fn infraspecific_indeterminate_stays_parsed() { assert_name("Salix alba subsp. B") .infra_species("Salix", "alba", Rank::Subspecies, "B") .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); } @@ -2005,3 +2006,57 @@ fn a_qualifier_after_the_author_goes_to_the_infraspecific_epithet() { }; assert_eq!(pn.infraspecific_epithet, None); } + +/// #246: a single letter is no genus or epithet; the misreadings behind most of them are mended and +/// what is left is flagged. +#[test] +fn single_letters_and_their_misreadings() { + use nameparser::model::warnings::SINGLE_LETTER; + // `c.f.` is cf., not the epithet `c` + assert_name("Dracaena c.f. afromontana Mildbr") + .species("Dracaena", "afromontana") + .qualifiers(&[(NamePart::Specific, "cf.")]) + .comb_authors(None, &["Mildbr"]) + .type_(NameType::Informal) + .nothing_else(); + // the author's initials stay initials + assert_name("Actinidia chrysantha C.F. Liang") + .species("Actinidia", "chrysantha") + .comb_authors(None, &["C.F.Liang"]) + .nothing_else(); + // a dotless or glued n. sp. is the marker of a new species, not the epithet `n` + for (input, phrase) in [ + ( + "Forcipata n sp. ancantha DeLong and Caldwell, 1936", + "n sp. ancantha DeLong and Caldwell, 1936", + ), + ("Emblyna n. sp1", "n. sp1"), + ] { + assert_informal(input) + .taxon(input.split_whitespace().next().unwrap()) + .taxon_rank(Rank::Genus) + .rank(Rank::Species) + .phrase(phrase) + .nothing_else(); + assert_eq!( + canonical(input).split_whitespace().nth(1), + input.split_whitespace().nth(1) + ); + } + // a lone letter as infraspecific epithet is a designation + assert_name("Polypedates leucomystax b") + .infra_species("Polypedates", "leucomystax", Rank::InfraspecificName, "b") + .type_(NameType::Informal) + .warning(&[SINGLE_LETTER]) + .nothing_else(); + assert_name("M mus") + .species("M", "mus") + .warning(&[SINGLE_LETTER]) + .nothing_else(); + // an abbreviated genus has its own warning + assert_name("M. mus") + .species("M.", "mus") + .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::ABBREVIATED_GENUS]) + .nothing_else(); +} diff --git a/crates/nameparser/tests/rare_rank_markers.rs b/crates/nameparser/tests/rare_rank_markers.rs index 612e4e2..d6557ee 100644 --- a/crates/nameparser/tests/rare_rank_markers.rs +++ b/crates/nameparser/tests/rare_rank_markers.rs @@ -72,6 +72,7 @@ fn race_marker() { assert_name("Diacamma rugosum r. Karavajev & Karawajew 1935") .infra_species("Diacamma", "rugosum", Rank::InfraspecificName, "r") .comb_authors(Some("1935"), &["Karavajev", "Karawajew"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); } @@ -122,6 +123,7 @@ fn s_marker_between_epithets() { assert_name("Abax s. Maran 1955") .species("Abax", "s") .comb_authors(Some("1955"), &["Maran"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); // before an author or at the end it is sensu, and so are s. str. and s. lat. assert_name("Agaricus aethiops s. Fr.") diff --git a/crates/nameparser/tests/taxonomic_notes.rs b/crates/nameparser/tests/taxonomic_notes.rs index cf4ccfc..3efff11 100644 --- a/crates/nameparser/tests/taxonomic_notes.rs +++ b/crates/nameparser/tests/taxonomic_notes.rs @@ -945,6 +945,7 @@ fn lower_case_s_dot_that_is_no_sensu() { assert_name("Abax s. Maran 1955") .species("Abax", "s") .comb_authors(Some("1955"), &["Maran"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); assert_name("Ilex sublongecaudata C. J. Tseng et s. Liu ex Y. R. Li") .species("Ilex", "sublongecaudata") @@ -965,11 +966,13 @@ fn lower_case_s_dot_that_is_no_sensu() { .species("Phacops", "s") .qualifiers(&[(NamePart::Specific, "cf.")]) .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); assert_name("Flexicalymene cf. Flexicalymene s.") .species("Flexicalymene", "s") .qualifiers(&[(NamePart::Specific, "cf.")]) .type_(NameType::Informal) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); // a strain code assert_informal("Mycobacterium sp. s.MYCO.102.26sc1") diff --git a/crates/nameparser/tests/worms_temporary.rs b/crates/nameparser/tests/worms_temporary.rs index 859b01f..53af86c 100644 --- a/crates/nameparser/tests/worms_temporary.rs +++ b/crates/nameparser/tests/worms_temporary.rs @@ -465,6 +465,7 @@ fn single_letter_species_epithet_is_informal() { .species("Collettea", letter) .type_(NameType::Informal) .comb_authors(Some("2005"), &["Blazewicz-Paszkowycz", "Larsen"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); } assert_name_hinted( @@ -476,6 +477,7 @@ fn single_letter_species_epithet_is_informal() { .species("Collettea", "a") .type_(NameType::Informal) .comb_authors(Some("2005"), &["Blazewicz-Paszkowycz", "Larsen"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); } @@ -495,6 +497,7 @@ fn single_letter_after_an_infraspecific_marker_is_the_epithet() { .infra_species("Undella", "hyalina", Rank::Variety, letter) .type_(NameType::Informal) .comb_authors(Some("1907"), &["Brandt"]) + .warning(&[nameparser::model::warnings::SINGLE_LETTER]) .nothing_else(); } } diff --git a/testdata/golden/expected-parse.jsonl b/testdata/golden/expected-parse.jsonl index b4c04cf..89c32e7 100644 --- a/testdata/golden/expected-parse.jsonl +++ b/testdata/golden/expected-parse.jsonl @@ -31,13 +31,13 @@ {"line":32,"input":"Acranthera athroophlebia Bremek. var.","parsed":{"rank":"VARIETY","genus":"Acranthera","specificEpithet":"athroophlebia","specificAuthorship":{"combinationAuthorship":{"authors":["Bremek."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":33,"input":"Acranthera simalurensis Bremek. var.","parsed":{"rank":"VARIETY","genus":"Acranthera","specificEpithet":"simalurensis","specificAuthorship":{"combinationAuthorship":{"authors":["Bremek."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":34,"input":"Actinostemon verticillatus Baill. f. subinermis Müll.Arg.","parsed":{"rank":"FORM","genus":"Actinostemon","specificEpithet":"verticillatus","specificAuthorship":{"combinationAuthorship":{"authors":["Baill."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"subinermis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":35,"input":"Adenandra serpyllacea Bartl. var. b Sond.","parsed":{"rank":"VARIETY","genus":"Adenandra","specificEpithet":"serpyllacea","specificAuthorship":{"combinationAuthorship":{"authors":["Bartl."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sond."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":35,"input":"Adenandra serpyllacea Bartl. var. b Sond.","parsed":{"rank":"VARIETY","genus":"Adenandra","specificEpithet":"serpyllacea","specificAuthorship":{"combinationAuthorship":{"authors":["Bartl."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Sond."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":36,"input":"Adenocaulon lechleri Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Adenocaulon","specificEpithet":"lechleri","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":37,"input":"Adenolepis calva Sch.Bip. ex Miq.","parsed":{"rank":"SPECIES","genus":"Adenolepis","specificEpithet":"calva","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Miq."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":38,"input":"Aegiphila falcata Donn.Sm.","parsed":{"rank":"SPECIES","genus":"Aegiphila","specificEpithet":"falcata","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Donn.Sm."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":39,"input":"Agrostistachys indica Dalzell var. longifolia Müll.Arg.","parsed":{"rank":"VARIETY","genus":"Agrostistachys","specificEpithet":"indica","specificAuthorship":{"combinationAuthorship":{"authors":["Dalzell"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"longifolia","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":40,"input":"Ainsliaea glumacea Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Ainsliaea","specificEpithet":"glumacea","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":41,"input":"Alangium sundanum Miq. var. ß","parsed":{"rank":"VARIETY","genus":"Alangium","specificEpithet":"sundanum","specificAuthorship":{"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":41,"input":"Alangium sundanum Miq. var. ß","parsed":{"rank":"VARIETY","genus":"Alangium","specificEpithet":"sundanum","specificAuthorship":{"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":42,"input":"Alchornea villosa (Benth.) Müll.Arg. var. lanceolata Müll.Arg.","parsed":{"rank":"VARIETY","genus":"Alchornea","specificEpithet":"villosa","specificAuthorship":{"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Benth."],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"lanceolata","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":43,"input":"Allardia tridactylites (Kar. & Kir.) Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Allardia","specificEpithet":"tridactylites","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Kar.","Kir."],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":44,"input":"Alnus elliptica Req. cv. 'itolanda' Door.","parsed":{"rank":"CULTIVAR","code":"CULTIVARS","genus":"Alnus","specificEpithet":"elliptica","specificAuthorship":{"combinationAuthorship":{"authors":["Req."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"cultivarEpithet":"itolanda","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Door."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -72,10 +72,10 @@ {"line":73,"input":"Argyrovernonia martii (DC.) MacLeish","parsed":{"rank":"SPECIES","genus":"Argyrovernonia","specificEpithet":"martii","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["MacLeish"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["DC."],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":74,"input":"Artemisia abyssinica Sch.Bip. ex A.Rich.","parsed":{"rank":"SPECIES","genus":"Artemisia","specificEpithet":"abyssinica","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["A.Rich."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":75,"input":"Artemisia magellanica Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Artemisia","specificEpithet":"magellanica","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":76,"input":"Aspidium abruptum Blume var. b","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"abruptum","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":77,"input":"Aspidium purpurascens Blume var. b","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"purpurascens","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":78,"input":"Aspidium subpubescens Blume var. b.","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"subpubescens","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":79,"input":"Aspidium subpubescens Blume var. c","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"subpubescens","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"c","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":76,"input":"Aspidium abruptum Blume var. b","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"abruptum","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":77,"input":"Aspidium purpurascens Blume var. b","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"purpurascens","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":78,"input":"Aspidium subpubescens Blume var. b.","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"subpubescens","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":79,"input":"Aspidium subpubescens Blume var. c","parsed":{"rank":"VARIETY","genus":"Aspidium","specificEpithet":"subpubescens","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"c","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":80,"input":"Aspidosperma cylindrocarpon Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Aspidosperma","specificEpithet":"cylindrocarpon","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":81,"input":"Aspidosperma desmanthum Benth. ex Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Aspidosperma","specificEpithet":"desmanthum","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":["Benth."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":82,"input":"Aspidosperma dispermum Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Aspidosperma","specificEpithet":"dispermum","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -88,7 +88,7 @@ {"line":89,"input":"Aster silenifolius Turcz. ec DC.","parsed":{"rank":"SPECIES","genus":"Aster","specificEpithet":"silenifolius","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["D.C.Turcz.ec"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":90,"input":"Asystasia zenkeri Lindau ms.","parsed":{"rank":"SPECIES","genus":"Asystasia","specificEpithet":"zenkeri","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"nomenclaturalNote":"ms.","doubtful":false,"manuscript":true,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Lindau"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":91,"input":"Attalea cryptanthera Wess.Boer","parsed":{"rank":"SPECIES","genus":"Attalea","specificEpithet":"cryptanthera","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Wess.Boer"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":92,"input":"Avena elatior L. var. b","parsed":{"rank":"VARIETY","genus":"Avena","specificEpithet":"elatior","specificAuthorship":{"combinationAuthorship":{"authors":["L."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":92,"input":"Avena elatior L. var. b","parsed":{"rank":"VARIETY","genus":"Avena","specificEpithet":"elatior","specificAuthorship":{"combinationAuthorship":{"authors":["L."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":93,"input":"Baccaurea bracteata Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Baccaurea","specificEpithet":"bracteata","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":94,"input":"Baccaurea costulata (Miq.) Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Baccaurea","specificEpithet":"costulata","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":95,"input":"Baccaurea deflexa (Müll.Arg.) Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Baccaurea","specificEpithet":"deflexa","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -140,8 +140,8 @@ {"line":141,"input":"Bidens schimperi Sch.Bip. ex Walp.","parsed":{"rank":"SPECIES","genus":"Bidens","specificEpithet":"schimperi","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Walp."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":142,"input":"Bilimbia miliaria Th.Fr.","parsed":{"rank":"SPECIES","genus":"Bilimbia","specificEpithet":"miliaria","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Th.Fr."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":143,"input":"Bixa texeirana Mart., nom. herb.","parsed":{"rank":"SPECIES","genus":"Bixa","specificEpithet":"texeirana","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"nomenclaturalNote":"nom. herb.","doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Mart."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":144,"input":"Blechnum pyrophyllum Blume var. c.","parsed":{"rank":"VARIETY","genus":"Blechnum","specificEpithet":"pyrophyllum","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"c","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":145,"input":"Blechnum pyrophyllum Blume var. ß","parsed":{"rank":"VARIETY","genus":"Blechnum","specificEpithet":"pyrophyllum","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":144,"input":"Blechnum pyrophyllum Blume var. c.","parsed":{"rank":"VARIETY","genus":"Blechnum","specificEpithet":"pyrophyllum","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"c","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":145,"input":"Blechnum pyrophyllum Blume var. ß","parsed":{"rank":"VARIETY","genus":"Blechnum","specificEpithet":"pyrophyllum","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":146,"input":"Blindia pulvinata Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Blindia","specificEpithet":"pulvinata","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":147,"input":"Blindia stricta Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Blindia","specificEpithet":"stricta","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":148,"input":"Blotiella trichosora Pic.Serm.","parsed":{"rank":"SPECIES","genus":"Blotiella","specificEpithet":"trichosora","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Pic.Serm."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -196,8 +196,8 @@ {"line":197,"input":"Chrysophthalmum sternutatorium Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Chrysophthalmum","specificEpithet":"sternutatorium","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":198,"input":"Cineraria abyssinica Sch.Bip. ex A.Rich.","parsed":{"rank":"SPECIES","genus":"Cineraria","specificEpithet":"abyssinica","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["A.Rich."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":199,"input":"Cineraria schimperi Sch.Bip. ex A.Rich.","parsed":{"rank":"SPECIES","genus":"Cineraria","specificEpithet":"schimperi","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["A.Rich."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":200,"input":"Cinnamomum albiflorum Nees var. b","parsed":{"rank":"VARIETY","genus":"Cinnamomum","specificEpithet":"albiflorum","specificAuthorship":{"combinationAuthorship":{"authors":["Nees"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":201,"input":"Cinnamomum albiflorum Nees var. d Lecomte","parsed":{"rank":"VARIETY","genus":"Cinnamomum","specificEpithet":"albiflorum","specificAuthorship":{"combinationAuthorship":{"authors":["Nees"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"d","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Lecomte"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":200,"input":"Cinnamomum albiflorum Nees var. b","parsed":{"rank":"VARIETY","genus":"Cinnamomum","specificEpithet":"albiflorum","specificAuthorship":{"combinationAuthorship":{"authors":["Nees"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":201,"input":"Cinnamomum albiflorum Nees var. d Lecomte","parsed":{"rank":"VARIETY","genus":"Cinnamomum","specificEpithet":"albiflorum","specificAuthorship":{"combinationAuthorship":{"authors":["Nees"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"d","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Lecomte"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":202,"input":"Cirsium abyssinicum Sch.Bip. ex A.Rich.","parsed":{"rank":"SPECIES","genus":"Cirsium","specificEpithet":"abyssinicum","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["A.Rich."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":203,"input":"Cissus barbeyana var. pauciflora Mildbr. ms.","parsed":{"rank":"VARIETY","genus":"Cissus","specificEpithet":"barbeyana","infraspecificEpithet":"pauciflora","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"nomenclaturalNote":"ms.","doubtful":false,"manuscript":true,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Mildbr."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":204,"input":"Cissus brandtiana Gilg ms.","parsed":{"rank":"SPECIES","genus":"Cissus","specificEpithet":"brandtiana","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"nomenclaturalNote":"ms.","doubtful":false,"manuscript":true,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Gilg"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -307,8 +307,8 @@ {"line":308,"input":"Dicranum schmidii Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Dicranum","specificEpithet":"schmidii","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":309,"input":"Dicranum stenopelma Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Dicranum","specificEpithet":"stenopelma","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":310,"input":"Dicranum zollingerianum Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Dicranum","specificEpithet":"zollingerianum","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":311,"input":"Digitaria ciliaris (Retz.) Koeler var. ß Buse","parsed":{"rank":"VARIETY","genus":"Digitaria","specificEpithet":"ciliaris","specificAuthorship":{"combinationAuthorship":{"authors":["Koeler"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Retz."],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Buse"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":312,"input":"Digitaria pruriens Buse var. ß","parsed":{"rank":"VARIETY","genus":"Digitaria","specificEpithet":"pruriens","specificAuthorship":{"combinationAuthorship":{"authors":["Buse"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":311,"input":"Digitaria ciliaris (Retz.) Koeler var. ß Buse","parsed":{"rank":"VARIETY","genus":"Digitaria","specificEpithet":"ciliaris","specificAuthorship":{"combinationAuthorship":{"authors":["Koeler"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Retz."],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Buse"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":312,"input":"Digitaria pruriens Buse var. ß","parsed":{"rank":"VARIETY","genus":"Digitaria","specificEpithet":"pruriens","specificAuthorship":{"combinationAuthorship":{"authors":["Buse"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":313,"input":"Diplostemma acaule Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Diplostemma","specificEpithet":"acaule","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":314,"input":"Dipteris conjugata Reinw. var.","parsed":{"rank":"VARIETY","genus":"Dipteris","specificEpithet":"conjugata","specificAuthorship":{"combinationAuthorship":{"authors":["Reinw."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":315,"input":"Dipterotheca kotschyi Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Dipterotheca","specificEpithet":"kotschyi","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -336,8 +336,8 @@ {"line":337,"input":"Eremopanax hederoides Baum.-Bod.","parsed":{"rank":"SPECIES","genus":"Eremopanax","specificEpithet":"hederoides","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Baum.-Bod."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":338,"input":"Eremopanax schlechteri Harms f. gracilis Baum.-Bod.","parsed":{"rank":"FORM","genus":"Eremopanax","specificEpithet":"schlechteri","specificAuthorship":{"combinationAuthorship":{"authors":["Harms"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"gracilis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Baum.-Bod."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":339,"input":"Erigeron pazensis Sch.Bip. ex Rusby","parsed":{"rank":"SPECIES","genus":"Erigeron","specificEpithet":"pazensis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Rusby"],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":340,"input":"Eriocaulon sexangulare L. var. B Körn.","parsed":{"rank":"VARIETY","genus":"Eriocaulon","specificEpithet":"sexangulare","specificAuthorship":{"combinationAuthorship":{"authors":["L."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"B","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Körn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":341,"input":"Eriocaulon sexangulare L. var. C Körn.","parsed":{"rank":"VARIETY","genus":"Eriocaulon","specificEpithet":"sexangulare","specificAuthorship":{"combinationAuthorship":{"authors":["L."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"C","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Körn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":340,"input":"Eriocaulon sexangulare L. var. B Körn.","parsed":{"rank":"VARIETY","genus":"Eriocaulon","specificEpithet":"sexangulare","specificAuthorship":{"combinationAuthorship":{"authors":["L."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"B","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Körn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":341,"input":"Eriocaulon sexangulare L. var. C Körn.","parsed":{"rank":"VARIETY","genus":"Eriocaulon","specificEpithet":"sexangulare","specificAuthorship":{"combinationAuthorship":{"authors":["L."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"C","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Körn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":342,"input":"Eriopus remotifolius Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Eriopus","specificEpithet":"remotifolius","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":343,"input":"Erismanthus obliquus Wall. ex Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Erismanthus","specificEpithet":"obliquus","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":["Wall."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":344,"input":"Erlangea plumosa Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Erlangea","specificEpithet":"plumosa","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -394,7 +394,7 @@ {"line":395,"input":"Grimmia oranica Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Grimmia","specificEpithet":"oranica","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":396,"input":"Guizotia villosa Sch.Bip. ex A.Rich.","parsed":{"rank":"SPECIES","genus":"Guizotia","specificEpithet":"villosa","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["A.Rich."],"exAuthors":["Sch.Bip."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":397,"input":"Gymnocalycium eurypleurumn Plesn¡k ex F.Ritter","parsed":{"rank":"SPECIES","genus":"Gymnocalycium","specificEpithet":"eurypleurumn","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["homoglyphs replaced"],"combinationAuthorship":{"authors":["F.Ritter"],"exAuthors":["Plesnik"],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":398,"input":"Haasia cyrtopoda Miq. var. ß","parsed":{"rank":"VARIETY","genus":"Haasia","specificEpithet":"cyrtopoda","specificAuthorship":{"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":398,"input":"Haasia cyrtopoda Miq. var. ß","parsed":{"rank":"VARIETY","genus":"Haasia","specificEpithet":"cyrtopoda","specificAuthorship":{"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":399,"input":"Halymenia nukuhivensis N'Yeurt & Payri","parsed":{"rank":"SPECIES","genus":"Halymenia","specificEpithet":"nukuhivensis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["N'Yeurt","Payri"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":400,"input":"Hamamelis mollis Oliv. cv. 'Brevipetala'","parsed":{"rank":"CULTIVAR","code":"CULTIVARS","genus":"Hamamelis","specificEpithet":"mollis","specificAuthorship":{"combinationAuthorship":{"authors":["Oliv."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"cultivarEpithet":"Brevipetala","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":401,"input":"Hamamelis vernalis Sarg. cv. 'Lombarts wheeping'","parsed":{"rank":"CULTIVAR","code":"CULTIVARS","genus":"Hamamelis","specificEpithet":"vernalis","specificAuthorship":{"combinationAuthorship":{"authors":["Sarg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"cultivarEpithet":"Lombarts wheeping","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -457,7 +457,7 @@ {"line":458,"input":"Lichenostigma diploiciae Calat., Nav.-Ros. & Hafellner","parsed":{"rank":"SPECIES","genus":"Lichenostigma","specificEpithet":"diploiciae","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Calat.","Nav.-Ros.","Hafellner"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":459,"input":"Lichenostigma gracilis Calat., Nav.-Ros. & Hafellner","parsed":{"rank":"SPECIES","genus":"Lichenostigma","specificEpithet":"gracilis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Calat.","Nav.-Ros.","Hafellner"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":460,"input":"Linsia vernonioides Sch.Bip.","parsed":{"rank":"SPECIES","genus":"Linsia","specificEpithet":"vernonioides","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sch.Bip."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":461,"input":"Lomaria vestita Blume var. b.","parsed":{"rank":"VARIETY","genus":"Lomaria","specificEpithet":"vestita","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":461,"input":"Lomaria vestita Blume var. b.","parsed":{"rank":"VARIETY","genus":"Lomaria","specificEpithet":"vestita","specificAuthorship":{"combinationAuthorship":{"authors":["Blume"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":462,"input":"Lopadium arthonioides Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Lopadium","specificEpithet":"arthonioides","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":463,"input":"Loranthus incanus Schumach. & Thonn. sessilis Sprague","parsed":{"rank":"INFRASPECIFIC_NAME","genus":"Loranthus","specificEpithet":"incanus","specificAuthorship":{"combinationAuthorship":{"authors":["Schumach.","Thonn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"sessilis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Sprague"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":464,"input":"Loranthus mirabilis Van Heurck & Müll.Arg.","parsed":{"rank":"SPECIES","genus":"Loranthus","specificEpithet":"mirabilis","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Van Heurck","Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -476,8 +476,8 @@ {"line":477,"input":"Mesalia zinkeni (Dunker 1851) & Promathildia turritella (Dunker 1851)","parsed":{"rank":"SPECIES","genus":"Mesalia","specificEpithet":"zinkeni","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"unparsed":"& Promathildia turritella (Dunker 1851)","doubtful":false,"manuscript":false,"state":"PARTIAL","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Dunker"],"exAuthors":[],"year":"1851","bracketedYear":false,"anonymous":false}}} {"line":478,"input":"Meteorium araucariophilum Müll.Hal. ex M.Fleisch.","parsed":{"rank":"SPECIES","genus":"Meteorium","specificEpithet":"araucariophilum","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["M.Fleisch."],"exAuthors":["Müll.Hal."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":479,"input":"Meteorium rehmannii Müll.Hal.","parsed":{"rank":"SPECIES","genus":"Meteorium","specificEpithet":"rehmannii","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Hal."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":480,"input":"Mezoneuron sumatranum Miq. var. b.","parsed":{"rank":"VARIETY","genus":"Mezoneuron","specificEpithet":"sumatranum","specificAuthorship":{"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":481,"input":"Mezoneuron sumatranum Wight & Arn. var. ß Miq.","parsed":{"rank":"VARIETY","genus":"Mezoneuron","specificEpithet":"sumatranum","specificAuthorship":{"combinationAuthorship":{"authors":["Wight","Arn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":480,"input":"Mezoneuron sumatranum Miq. var. b.","parsed":{"rank":"VARIETY","genus":"Mezoneuron","specificEpithet":"sumatranum","specificAuthorship":{"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":481,"input":"Mezoneuron sumatranum Wight & Arn. var. ß Miq.","parsed":{"rank":"VARIETY","genus":"Mezoneuron","specificEpithet":"sumatranum","specificAuthorship":{"combinationAuthorship":{"authors":["Wight","Arn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"ß","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Miq."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":482,"input":"Michelia coriacea Hung T.Chang & B.L.Chen","parsed":{"rank":"SPECIES","genus":"Michelia","specificEpithet":"coriacea","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Hung T.Chang","B.L.Chen"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":483,"input":"Michelia doltsopa Buch.-Ham. ex DC. var.","parsed":{"rank":"VARIETY","genus":"Michelia","specificEpithet":"doltsopa","specificAuthorship":{"combinationAuthorship":{"authors":["DC."],"exAuthors":["Buch.-Ham."],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":484,"input":"Michelia fulva Hung T.Chang & B.L.Chen","parsed":{"rank":"SPECIES","genus":"Michelia","specificEpithet":"fulva","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Hung T.Chang","B.L.Chen"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -504,7 +504,7 @@ {"line":505,"input":"Nemuaron vieillardi (Baill.) Baill. var. brevior Baum.-Bod.","parsed":{"rank":"VARIETY","genus":"Nemuaron","specificEpithet":"vieillardi","specificAuthorship":{"combinationAuthorship":{"authors":["Baill."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Baill."],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"brevior","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Baum.-Bod."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":506,"input":"Neotuerckheimia megalophylla Donn.Sm.","parsed":{"rank":"SPECIES","genus":"Neotuerckheimia","specificEpithet":"megalophylla","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Donn.Sm."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":507,"input":"Ochna afzelii var. warneckei Engl. ms.","parsed":{"rank":"VARIETY","genus":"Ochna","specificEpithet":"afzelii","infraspecificEpithet":"warneckei","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"nomenclaturalNote":"ms.","doubtful":false,"manuscript":true,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Engl."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":508,"input":"Ochna moonii Thwaites var. b","parsed":{"rank":"VARIETY","genus":"Ochna","specificEpithet":"moonii","specificAuthorship":{"combinationAuthorship":{"authors":["Thwaites"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":508,"input":"Ochna moonii Thwaites var. b","parsed":{"rank":"VARIETY","genus":"Ochna","specificEpithet":"moonii","specificAuthorship":{"combinationAuthorship":{"authors":["Thwaites"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"b","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":509,"input":"Ochradenus baccatus Delile var. monstruosa Müll.Arg.","parsed":{"rank":"VARIETY","genus":"Ochradenus","specificEpithet":"baccatus","specificAuthorship":{"combinationAuthorship":{"authors":["Delile"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"monstruosa","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":510,"input":"Ochradenus baccatus Delile var. scandens Hochst., Steud. & Müll.Arg.","parsed":{"rank":"VARIETY","genus":"Ochradenus","specificEpithet":"baccatus","specificAuthorship":{"combinationAuthorship":{"authors":["Delile"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"scandens","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Hochst.","Steud.","Müll.Arg."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":511,"input":"Oenocarpus bacaba Mart. var. parvus Wess.Boer","parsed":{"rank":"VARIETY","genus":"Oenocarpus","specificEpithet":"bacaba","specificAuthorship":{"combinationAuthorship":{"authors":["Mart."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}},"infraspecificEpithet":"parvus","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Wess.Boer"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} @@ -4930,7 +4930,7 @@ {"line":4931,"input":"Actinomma leptodermum longispinum Cortese & Bjørklund 1998","parsed":{"rank":"INFRASPECIFIC_NAME","genus":"Actinomma","specificEpithet":"leptodermum","infraspecificEpithet":"longispinum","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Cortese","Bjørklund"],"exAuthors":[],"year":"1998","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4932,"input":"Arachnosphaera dichotoma Jørgensen, 1900","parsed":{"rank":"SPECIES","genus":"Arachnosphaera","specificEpithet":"dichotoma","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Jørgensen"],"exAuthors":[],"year":"1900","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4933,"input":"Hexaconthium pachydermum forma legitime Cortese & Bjørklund 1998","parsed":{"rank":"FORM","genus":"Hexaconthium","specificEpithet":"pachydermum","infraspecificEpithet":"legitime","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Cortese","Bjørklund"],"exAuthors":[],"year":"1998","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":4934,"input":"Hexaconthium pachydermum form A Cortese & Bjørklund 1998","parsed":{"rank":"FORM","genus":"Hexaconthium","specificEpithet":"pachydermum","infraspecificEpithet":"A","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Cortese","Bjørklund"],"exAuthors":[],"year":"1998","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":4934,"input":"Hexaconthium pachydermum form A Cortese & Bjørklund 1998","parsed":{"rank":"FORM","genus":"Hexaconthium","specificEpithet":"pachydermum","infraspecificEpithet":"A","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Cortese","Bjørklund"],"exAuthors":[],"year":"1998","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4935,"input":"Tripodiscium gephyristes (Hülseman, 1963) BJ&KR-Atsdatabanken","parsed":{"rank":"SPECIES","genus":"Tripodiscium","specificEpithet":"gephyristes","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["BJ","KR-Atsdatabanken"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Hülseman"],"exAuthors":[],"year":"1963","bracketedYear":false,"anonymous":false}}} {"line":4936,"input":"Protocystis xiphodon (Haeckel, 1887), Borgert, 1901","parsed":{"rank":"SPECIES","genus":"Protocystis","specificEpithet":"xiphodon","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Borgert"],"exAuthors":[],"year":"1901","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Haeckel"],"exAuthors":[],"year":"1887","bracketedYear":false,"anonymous":false}}} {"line":4937,"input":"Acrosphaera lappacea (Haeckel, 1887) Takahashi, 1991","parsed":{"rank":"SPECIES","genus":"Acrosphaera","specificEpithet":"lappacea","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Takahashi"],"exAuthors":[],"year":"1991","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Haeckel"],"exAuthors":[],"year":"1887","bracketedYear":false,"anonymous":false}}} @@ -4988,7 +4988,7 @@ {"line":4989,"input":"Euchlanis dilatata β-larga","parsed":{"rank":"INFRASPECIFIC_NAME","genus":"Euchlanis","specificEpithet":"dilatata","infraspecificEpithet":"β-larga","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4990,"input":"Trianosperma ficifolia var. βrigida Cogn.","parsed":{"rank":"VARIETY","genus":"Trianosperma","specificEpithet":"ficifolia","infraspecificEpithet":"βrigida","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Cogn."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4991,"input":"Agaricus collinitus β mucosus (Bull.) Fr.","parsed":{"rank":"INFRASPECIFIC_NAME","genus":"Agaricus","specificEpithet":"collinitus","infraspecificEpithet":"mucosus","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Fr."],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Bull."],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":4992,"input":"Cyclotus amethystinus var. β Guppy, 1868","parsed":{"rank":"VARIETY","genus":"Cyclotus","specificEpithet":"amethystinus","infraspecificEpithet":"β","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["Guppy"],"exAuthors":[],"year":"1868","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":4992,"input":"Cyclotus amethystinus var. β Guppy, 1868","parsed":{"rank":"VARIETY","genus":"Cyclotus","specificEpithet":"amethystinus","infraspecificEpithet":"β","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["single letter genus or epithet"],"combinationAuthorship":{"authors":["Guppy"],"exAuthors":[],"year":"1868","bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4993,"input":"+ Pyrocrataegus willei L.L.Daniel","parsed":{"rank":"SPECIES","code":"CULTIVARS","genus":"Pyrocrataegus","specificEpithet":"willei","candidatus":false,"graftChimaera":true,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["L.L.Daniel"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4994,"input":"×Pyrocrataegus willei L.L. Daniel","parsed":{"rank":"SPECIES","code":"BOTANICAL","genus":"Pyrocrataegus","specificEpithet":"willei","candidatus":false,"graftChimaera":false,"notho":["GENERIC"],"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["L.L.Daniel"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4995,"input":"× Pyrocrataegus willei L. L. Daniel","parsed":{"rank":"SPECIES","code":"BOTANICAL","genus":"Pyrocrataegus","specificEpithet":"willei","candidatus":false,"graftChimaera":false,"notho":["GENERIC"],"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":["L.L.Daniel"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} From 41ae0a9045df9243ca7e2e26e71263bef083fd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Thu, 19 Nov 2026 00:58:32 +0100 Subject: [PATCH 06/16] fix(parser): a qualified epithet before sp. keeps its species (#252) A qualifier only doubts the species it stands before, it does not take it away: `Euxoa nr. idahoensis sp. 1clay`, `Prionospio aff. iberian sp. c` and `Ramazzottius aff. szeptycki sp. n. 1 ALL-2022a` are the species with its qualifier and the unnamed one's phrase, as `Gemmula cf. cosmoi NP-2008` is. Several unqualified words before the marker still hang the phrase off the genus (`Prionospio iberian canyons sp. c`). The Euxoa golden rows are back to what they were before #252. ChecklistBank: 179 names, mostly `Acropora aff. ... sp. 1 JTL-2012`; COL XR: none. Refs #252 --- crates/nameparser/src/pipeline/name_tokens.rs | 11 +++--- crates/nameparser/tests/informal.rs | 38 ++++++++++++++----- testdata/golden/expected-format.tsv | 2 +- testdata/golden/expected-parse.jsonl | 2 +- 4 files changed, 36 insertions(+), 17 deletions(-) diff --git a/crates/nameparser/src/pipeline/name_tokens.rs b/crates/nameparser/src/pipeline/name_tokens.rs index 13033ee..331c8aa 100644 --- a/crates/nameparser/src/pipeline/name_tokens.rs +++ b/crates/nameparser/src/pipeline/name_tokens.rs @@ -617,14 +617,15 @@ pub(crate) fn classify(ctx: &mut ParseContext, boundary: usize) { if i < ts.len() && ts[i].kind == TokenKind::Dot { i += 1; } - // #252: several words or a qualified one before the marker are no species to - // hang the unnamed one off, so it hangs off the genus and they open its phrase: - // `Prionospio iberian canyons sp. c`, `Prionospio aff. iberian sp. c`. One - // word is its species: `Abies alba sp. c` keeps `sp. c`, as `sp. 1` does. + // #252: several words before the marker are no species to hang the unnamed one + // off, so it hangs off the genus and they open its phrase: `Prionospio iberian + // canyons sp. c`. One word is its species, `Abies alba sp. c` keeps `sp. c` as + // `sp. 1` does, and so does a qualified one, which the qualifier only doubts: + // `Euxoa nr. idahoensis sp. 1clay`, `Ramazzottius aff. szeptycki sp. n. 1`. if (sp_designation || number_follows_marker) && !lower_epithets.is_empty() && marker_idx_in_epithets < 0 - && (lower_epithets.len() >= 2 || cf_aff_qualifier.is_some()) + && lower_epithets.len() >= 2 { let start = ts[..marker_idx] .iter() diff --git a/crates/nameparser/tests/informal.rs b/crates/nameparser/tests/informal.rs index 81b9943..7c4296d 100644 --- a/crates/nameparser/tests/informal.rs +++ b/crates/nameparser/tests/informal.rs @@ -1226,16 +1226,9 @@ fn a_provisional_species_in_a_subgenus_or_section_is_a_species() { #[test] fn sp_after_the_epithets_marks_an_unnamed_species() { - // #252: `sp.` was read as a misspelt `ssp.`, and a word before it dropped. Several words or a - // qualified one before it are no species, so the unnamed one hangs off the genus. - for (input, phrase) in [ - ("Prionospio iberian canyons sp. c", "iberian canyons sp. c"), - ("Prionospio aff. iberian sp. c", "aff. iberian sp. c"), - ( - "Ramazzottius aff. szeptycki sp. n. 1 ALL-2022a", - "aff. szeptycki sp. n. 1 ALL-2022a", - ), - ] { + // #252: `sp.` was read as a misspelt `ssp.`, and a word before it dropped. Several words before + // it are no species, so the unnamed one hangs off the genus. + for (input, phrase) in [("Prionospio iberian canyons sp. c", "iberian canyons sp. c")] { assert_informal_hinted(input, None, Some(Rank::Species), None) .taxon(input.split_whitespace().next().unwrap()) .taxon_rank(Rank::Genus) @@ -1244,6 +1237,31 @@ fn sp_after_the_epithets_marks_an_unnamed_species() { .nothing_else(); assert_eq!(canonical(input), input); } + // a qualified one too, which the qualifier only doubts + for (input, species, qualifier, phrase) in [ + ("Prionospio aff. iberian sp. c", "iberian", "aff.", "sp. c"), + ( + "Ramazzottius aff. szeptycki sp. n. 1 ALL-2022a", + "szeptycki", + "aff.", + "sp. n. 1 ALL-2022a", + ), + ( + "Euxoa nr. idahoensis sp. 1clay", + "idahoensis", + "nr.", + "sp. 1clay", + ), + ] { + let genus = input.split_whitespace().next().unwrap(); + assert_name(input) + .species(genus, species) + .qualifiers(&[(NamePart::Specific, qualifier)]) + .phrase(phrase) + .type_(NameType::Informal) + .nothing_else(); + assert_eq!(canonical(input), input); + } // one word before it is the species, as for `Abies alba sp. 1` assert_informal("Abies alba sp. c") .taxon("Abies alba") diff --git a/testdata/golden/expected-format.tsv b/testdata/golden/expected-format.tsv index 0e8794f..a4b6bb1 100644 --- a/testdata/golden/expected-format.tsv +++ b/testdata/golden/expected-format.tsv @@ -4436,7 +4436,7 @@ Pardösa true Pardösa Pardösa Pardosa Pardösa Rühlella true Rühlella Rühlella Ruhlella Rühlella Solygia ? distanti true Solygia ? distanti Solygia ? distanti Solygia distanti Solygia ? distanti Buteo borealis ? ventralis true Buteo borealis ? ventralis Buteo borealis ? ventralis Buteo borealis ventralis Buteo borealis ? ventralis -Euxoa nr. idahoensis sp. 1clay true Euxoa nr. idahoensis sp. 1clay Euxoa nr. idahoensis sp. 1clay Euxoa Euxoa nr. idahoensis sp. 1clay +Euxoa nr. idahoensis sp. 1clay true Euxoa nr. idahoensis sp. 1clay Euxoa nr. idahoensis sp. 1clay Euxoa idahoensis Euxoa nr. idahoensis sp. 1clay Acarinina aff. pentacamerata true Acarinina aff. pentacamerata Acarinina aff. pentacamerata Acarinina pentacamerata Acarinina aff. pentacamerata Acarinina aff pentacamerata true Acarinina aff. pentacamerata Acarinina aff. pentacamerata Acarinina pentacamerata Acarinina aff. pentacamerata Sphingomonas sp. 37 true Sphingomonas sp. 37 Sphingomonas sp. 37 Sphingomonas Sphingomonas sp. 37 diff --git a/testdata/golden/expected-parse.jsonl b/testdata/golden/expected-parse.jsonl index 89c32e7..cab91d9 100644 --- a/testdata/golden/expected-parse.jsonl +++ b/testdata/golden/expected-parse.jsonl @@ -4435,7 +4435,7 @@ {"line":4436,"input":"Rühlella","parsed":{"rank":"UNRANKED","uninomial":"Rühlella","candidatus":false,"graftChimaera":false,"type":"SCIENTIFIC","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4437,"input":"Solygia ? distanti","parsed":{"rank":"SPECIES","genus":"Solygia","specificEpithet":"distanti","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"?"},"type":"INFORMAL","extinct":false,"doubtful":true,"manuscript":false,"state":"COMPLETE","warnings":["question marks removed"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4438,"input":"Buteo borealis ? ventralis","parsed":{"rank":"INFRASPECIFIC_NAME","genus":"Buteo","specificEpithet":"borealis","infraspecificEpithet":"ventralis","candidatus":false,"graftChimaera":false,"epithetQualifier":{"INFRASPECIFIC":"?"},"type":"INFORMAL","extinct":false,"doubtful":true,"manuscript":false,"state":"COMPLETE","warnings":["question marks removed"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":4439,"input":"Euxoa nr. idahoensis sp. 1clay","parsed":{"rank":"SPECIES","genus":"Euxoa","phrase":"nr. idahoensis sp. 1clay","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":4439,"input":"Euxoa nr. idahoensis sp. 1clay","parsed":{"rank":"SPECIES","genus":"Euxoa","specificEpithet":"idahoensis","phrase":"sp. 1clay","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"nr."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4440,"input":"Acarinina aff. pentacamerata","parsed":{"rank":"SPECIES","genus":"Acarinina","specificEpithet":"pentacamerata","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"aff."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4441,"input":"Acarinina aff pentacamerata","parsed":{"rank":"SPECIES","genus":"Acarinina","specificEpithet":"pentacamerata","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"aff."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4442,"input":"Sphingomonas sp. 37","parsed":{"rank":"SPECIES","genus":"Sphingomonas","phrase":"sp. 37","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} From 1431c54109f685ba0cfbcce0c5c6c007c17b304c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Thu, 19 Nov 2026 01:32:16 +0100 Subject: [PATCH 07/16] fix(parser): vel aff., a qualified second name and a split BIN From a review of every pinned cf./aff./nr. name: - `vel aff.` or `vel cf.` behind a name, "this or one close to it", is the qualifier of the last epithet as a whole: `Garcinia riparia vel aff.`, `Pisonia macrocarpa Miranda vel aff.`, `Dalbergia densa var. australis vel aff.`. `vel` was read as an infraspecific epithet or an author, `aff` as an epithet. Also in a separate authorship (`Miranda vel aff.`). - A capitalised word with a qualified epithet after a species is a second name, no author takes a qualifier: `Septifer bilocularis Brachidontes cf. variabilis` is the species, the second name left unparsed. An autonym after its author stays one (`Swartzia flaemingii Raddi cf. flaemingii`). - A BOLD BIN split by a comma, `Lacanobia nr. subjuncta Bold:Aab, 0925`, is the phrase of the doubted species, as written; it was the author "Bold". ChecklistBank: 22 rows (12 names), all of them `vel aff.` but Septifer and `Sumatrina (?) turbida Streblus aff. longissima`, which no longer loses `Streblus aff.`; COL XR: none. One golden row (Lacanobia) re-baselined. --- .../nameparser/src/pipeline/stripandstash.rs | 55 ++++++++++++++++--- crates/nameparser/tests/gna_04.rs | 9 ++- crates/nameparser/tests/informal.rs | 54 ++++++++++++------ testdata/golden/expected-format.tsv | 2 +- testdata/golden/expected-parse.jsonl | 2 +- 5 files changed, 93 insertions(+), 29 deletions(-) diff --git a/crates/nameparser/src/pipeline/stripandstash.rs b/crates/nameparser/src/pipeline/stripandstash.rs index 7228719..33041ae 100644 --- a/crates/nameparser/src/pipeline/stripandstash.rs +++ b/crates/nameparser/src/pipeline/stripandstash.rs @@ -1511,6 +1511,18 @@ static TRAILING_QUALIFIER: LazyLock = LazyLock::new(|| { static QUALIFIER_AFTER_AUTHOR: LazyLock = LazyLock::new(|| { Regex::new(r"^(\p{Lu}\p{Ll}+(?-u:\s+)(\p{Ll}[\p{Ll}\-]+)(?-u:\s+)[\p{Lu}(].*?)(?-u:\s+)(?:cf|aff)\.?(?-u:\s+)(((?:var|subsp|ssp|f|fo|forma)\.?(?-u:\s+))?(\p{Ll}[\p{Ll}\-]+).*)$").unwrap() }); +/// `vel aff.` or `vel cf.` behind a name, "this or one close to it": `Garcinia riparia vel aff.`, +/// `Pisonia macrocarpa Miranda vel aff.`, `Dalbergia densa var. australis vel aff.`. The `vel` was +/// read as an epithet or an author. The groups: the name, its species epithet, the qualifier. +static TRAILING_VEL_QUALIFIER: LazyLock = LazyLock::new(|| { + Regex::new(r"^(\p{Lu}\p{Ll}+(?-u:\s+)(\p{Ll}[\p{Ll}\-]+)(?:(?-u:\s+)\S.*?)?)(?-u:\s+)vel\.?(?-u:\s+)(cf|aff)\.?$").unwrap() +}); +/// A second name after a species, its genus written out and its epithet qualified: `Septifer +/// bilocularis Brachidontes cf. variabilis`. No author takes a qualifier. The groups: the species, +/// its epithet, the second name. +static QUALIFIED_SECOND_NAME: LazyLock = LazyLock::new(|| { + Regex::new(r"^(\p{Lu}\p{Ll}+(?-u:\s+)(\p{Ll}[\p{Ll}\-]{2,}))(?-u:\s+)(\p{Lu}\p{Ll}{2,}(?-u:\s+)(?:cf|aff|nr)\.?(?-u:\s+)(\p{Ll}[\p{Ll}\-]{2,}))$").unwrap() +}); /// Words in a species epithet's place that take no qualifier behind the name. const NO_QUALIFIED_EPITHET: &[&str] = &[ "sp", "spp", "spec", "species", "indet", "cf", "aff", "nr", "near", @@ -1519,9 +1531,27 @@ const NO_QUALIFIED_EPITHET: &[&str] = &[ /// Takes a qualifier out of where it does not belong, for the pipeline to give it to the name's /// last epithet once that is known, see [`TRAILING_QUALIFIER`] and [`QUALIFIER_AFTER_AUTHOR`]. A /// lone epithet after the author only with a rank marker or as an autonym: others are mostly second -/// names (`Septifer bilocularis Brachidontes cf. variabilis`). +/// names (`Septifer bilocularis Brachidontes cf. variabilis`), set aside as unparsed, see +/// [`QUALIFIED_SECOND_NAME`]. `vel aff.` is the qualifier as a whole, [`TRAILING_VEL_QUALIFIER`]. fn stash_misplaced_qualifier(ctx: &mut ParseContext, s: String) -> String { let s = BRACKETED_QUALIFIER.replace(&s, "$1 $2.").into_owned(); + if let Some(caps) = TRAILING_VEL_QUALIFIER.captures(&s) { + if !NO_QUALIFIED_EPITHET.contains(&&caps[2]) { + ctx.pending_qualifier = Some(format!("vel {}.", &caps[3])); + return caps[1].to_string(); + } + } + if let Some(caps) = QUALIFIED_SECOND_NAME.captures(&s) { + // an autonym after its author is no second name: `Swartzia flaemingii Raddi cf. flaemingii` + if !NO_QUALIFIED_EPITHET.contains(&&caps[2]) + && !NO_QUALIFIED_EPITHET.contains(&&caps[4]) + && caps[4] != caps[2] + && super::rank_markers::match_infraspecific(&caps[4]).is_none() + { + ctx.set_pending_unparsed(&caps[3]); + return caps[1].to_string(); + } + } if let Some(caps) = TRAILING_QUALIFIER.captures(&s) { let head_end = caps[1] .split_whitespace() @@ -1560,16 +1590,18 @@ fn stash_misplaced_qualifier(ctx: &mut ParseContext, s: String) -> String { s } -/// A qualifier trailing a separate authorship: `Vittad. cf.`, as [`TRAILING_QUALIFIER`] on the name -/// string. -static AUTHORSHIP_TRAILING_QUALIFIER: LazyLock = - LazyLock::new(|| Regex::new(r"^(.*\S)(?-u:\s+)\(?(cf|aff|nr)\.?\)?$").unwrap()); +/// A qualifier trailing a separate authorship: `Vittad. cf.`, `Miranda vel aff.`, as +/// [`TRAILING_QUALIFIER`] and [`TRAILING_VEL_QUALIFIER`] on the name string. +static AUTHORSHIP_TRAILING_QUALIFIER: LazyLock = LazyLock::new(|| { + Regex::new(r"^(.*?\S)(?-u:\s+)\(?(vel\.?(?-u:\s+))?(cf|aff|nr)\.?\)?$").unwrap() +}); /// See [`AUTHORSHIP_TRAILING_QUALIFIER`]. fn stash_authorship_trailing_qualifier(ctx: &mut ParseContext, s: String) -> String { match AUTHORSHIP_TRAILING_QUALIFIER.captures(&s) { Some(caps) => { - ctx.pending_qualifier = Some(format!("{}.", &caps[2])); + let vel = if caps.get(2).is_some() { "vel " } else { "" }; + ctx.pending_qualifier = Some(format!("{vel}{}.", &caps[3])); caps[1].to_string() } None => s, @@ -2220,8 +2252,9 @@ fn repair_colon_diacritics(ctx: &mut ParseContext, s: String) -> String { /// after a name. On its own it is an IDENTIFIER (see `preflight`). A `BIN` label before the code /// goes with it, `Bledius BIN BOLD:ACU5439` (#187): it was taken for an author. Brackets around /// them go too, `Aegialites debilis (BIN BOLD:ADH3884)` (#216), a basionym author `BIN Bold` before. +/// A BIN split by a comma, `Lacanobia nr. subjuncta Bold:Aab, 0925`, is kept as written. static TRAILING_IDENTIFIER: LazyLock = LazyLock::new(|| { - Regex::new(r"(?i)^(.*?[^\s])(?-u:\s+)\(?(?:BIN(?-u:\s+))?(BOLD[:_-][A-Z0-9]+|SH(?-u:\d{6,})\.[0-9A-Z.]+)\)?$").unwrap() + Regex::new(r"(?i)^(.*?[^\s])(?-u:\s+)\(?(?:BIN(?-u:\s+))?(BOLD[:_-][A-Z0-9]+(?:,(?-u:\s*)\d+)?|SH(?-u:\d{6,})\.[0-9A-Z.]+)\)?$").unwrap() }); /// Sets a trailing BOLD BIN or SH code aside, to be appended to the phrase by Assemble: the @@ -2231,8 +2264,12 @@ static TRAILING_IDENTIFIER: LazyLock = LazyLock::new(|| { fn stash_trailing_identifier(ctx: &mut ParseContext, s: String) -> String { match TRAILING_IDENTIFIER.captures(&s) { Some(caps) => { - // Canonical in uppercase, as on its own (#119). - ctx.trailing_identifier = Some(super::preflight::canonical_identifier(&caps[2])); + // Canonical in uppercase, as on its own (#119); a split one as written. + ctx.trailing_identifier = Some(if caps[2].contains(',') { + caps[2].to_string() + } else { + super::preflight::canonical_identifier(&caps[2]) + }); caps[1].to_string() } None => s, diff --git a/crates/nameparser/tests/gna_04.rs b/crates/nameparser/tests/gna_04.rs index a6b1fb3..83bf419 100644 --- a/crates/nameparser/tests/gna_04.rs +++ b/crates/nameparser/tests/gna_04.rs @@ -437,8 +437,13 @@ fn open_nomenclature_approximate_names() { .rank(Rank::Species) .phrase("sp. nr. subjuncta Bold:Aab, 0925") .nothing_else(); - // FIXME(review): the mangled BIN "Bold:Aab, 0925" is read as a botanical author sanctioned by Aab - // skipped: Lacanobia nr. subjuncta Bold:Aab, 0925 + // the mangled BIN "Bold:Aab, 0925" designates a specimen of the doubted species + assert_name("Lacanobia nr. subjuncta Bold:Aab, 0925") + .species("Lacanobia", "subjuncta") + .qualifiers(&[(NamePart::Specific, "nr.")]) + .phrase("Bold:Aab, 0925") + .type_(NameType::Informal) + .nothing_else(); assert_name("Abturia cf. alabamensis (Morton )") .species("Abturia", "alabamensis") .bas_authors(None, &["Morton"]) diff --git a/crates/nameparser/tests/informal.rs b/crates/nameparser/tests/informal.rs index 7c4296d..a545fb6 100644 --- a/crates/nameparser/tests/informal.rs +++ b/crates/nameparser/tests/informal.rs @@ -2007,22 +2007,44 @@ fn a_qualifier_after_the_author_goes_to_the_infraspecific_epithet() { panic!("parsed"); }; assert_eq!(pn.infraspecific_epithet, None); - let ParseResult::Parsed(pn) = - nameparser::parse("Hibbertia obtusifolia vel. aff.", None, None, None) - else { - panic!("parsed"); - }; - assert_eq!(pn.epithet_qualifier, None); - // no autonym and no marker: a second name - let ParseResult::Parsed(pn) = nameparser::parse( - "Septifer bilocularis Brachidontes cf. variabilis", - None, - None, - None, - ) else { - panic!("parsed"); - }; - assert_eq!(pn.infraspecific_epithet, None); + // `vel aff.` is the qualifier as a whole, "this or one close to it", on the last epithet + for (input, qualified) in [ + ("Hibbertia obtusifolia vel. aff.", "obtusifolia"), + ("Garcinia riparia vel aff.", "riparia"), + ("Clematis glycinoides vel cf.", "glycinoides"), + ] { + let genus = input.split_whitespace().next().unwrap(); + assert_name(input) + .species(genus, qualified) + .qualifiers(&[( + NamePart::Specific, + input + .rsplit_once(qualified) + .unwrap() + .1 + .trim() + .replace("vel.", "vel") + .as_str(), + )]) + .type_(NameType::Informal) + .nothing_else(); + } + assert_name("Pisonia macrocarpa Miranda vel aff.") + .species("Pisonia", "macrocarpa") + .comb_authors(None, &["Miranda"]) + .qualifiers(&[(NamePart::Specific, "vel aff.")]) + .type_(NameType::Informal) + .nothing_else(); + assert_name("Dalbergia densa var. australis vel aff.") + .infra_species("Dalbergia", "densa", Rank::Variety, "australis") + .qualifiers(&[(NamePart::Infraspecific, "vel aff.")]) + .type_(NameType::Informal) + .nothing_else(); + // no autonym and no marker after a qualified word: a second name, set aside + assert_name("Septifer bilocularis Brachidontes cf. variabilis") + .species("Septifer", "bilocularis") + .partial("Brachidontes cf. variabilis") + .nothing_else(); } /// #246: a single letter is no genus or epithet; the misreadings behind most of them are mended and diff --git a/testdata/golden/expected-format.tsv b/testdata/golden/expected-format.tsv index a4b6bb1..19dc14a 100644 --- a/testdata/golden/expected-format.tsv +++ b/testdata/golden/expected-format.tsv @@ -4445,7 +4445,7 @@ Endoxyla sp. GM-, 2003 true Endoxyla sp. GM-, 2003 Endoxyla sp. GM-, 2003 Endoxy X Aegilotrichum sp. true × Aegilotrichum sp. × Aegilotrichum sp. Aegilotrichum × Aegilotrichum sp. Liopropoma sp.2 Not applicable true Liopropoma sp.2 Liopropoma sp.2 Liopropoma Liopropoma sp.2 Lacanobia sp. nr. subjuncta Bold:Aab, 0925 true Lacanobia sp. nr. subjuncta Bold:Aab, 0925 Lacanobia sp. nr. subjuncta Bold:Aab, 0925 Lacanobia Lacanobia sp. nr. subjuncta Bold:Aab, 0925 -Lacanobia nr. subjuncta Bold:Aab, 0925 true Lacanobia nr. subjuncta Bold Lacanobia nr. subjuncta Lacanobia subjuncta Lacanobia nr. subjuncta Bold Bold +Lacanobia nr. subjuncta Bold:Aab, 0925 true Lacanobia nr. subjuncta Bold:Aab, 0925 Lacanobia nr. subjuncta Bold:Aab, 0925 Lacanobia subjuncta Lacanobia nr. subjuncta Bold:Aab, 0925 Abturia cf. alabamensis (Morton ) true Abturia cf. alabamensis (Morton) Abturia cf. alabamensis Abturia alabamensis Abturia cf. alabamensis (Morton) (Morton) Abturia cf alabamensis (Morton ) true Abturia cf. alabamensis (Morton) Abturia cf. alabamensis Abturia alabamensis Abturia cf. alabamensis (Morton) (Morton) Calidris cf. cooperi true Calidris cf. cooperi Calidris cf. cooperi Calidris cooperi Calidris cf. cooperi diff --git a/testdata/golden/expected-parse.jsonl b/testdata/golden/expected-parse.jsonl index cab91d9..11dd8f9 100644 --- a/testdata/golden/expected-parse.jsonl +++ b/testdata/golden/expected-parse.jsonl @@ -4444,7 +4444,7 @@ {"line":4445,"input":"X Aegilotrichum sp.","parsed":{"rank":"SPECIES","code":"BOTANICAL","genus":"Aegilotrichum","phrase":"sp.","candidatus":false,"graftChimaera":false,"notho":["GENERIC"],"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4446,"input":"Liopropoma sp.2 Not applicable","parsed":{"rank":"SPECIES","genus":"Liopropoma","phrase":"sp.2","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["authorship placeholder removed","indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4447,"input":"Lacanobia sp. nr. subjuncta Bold:Aab, 0925","parsed":{"rank":"SPECIES","genus":"Lacanobia","phrase":"sp. nr. subjuncta Bold:Aab, 0925","candidatus":false,"graftChimaera":false,"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":["indetermined name missing its terminal epithet"],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} -{"line":4448,"input":"Lacanobia nr. subjuncta Bold:Aab, 0925","parsed":{"rank":"SPECIES","genus":"Lacanobia","specificEpithet":"subjuncta","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"nr."},"type":"INFORMAL","extinct":false,"unparsed":"Aab, 0925","doubtful":false,"manuscript":false,"state":"PARTIAL","warnings":[],"combinationAuthorship":{"authors":["Bold"],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} +{"line":4448,"input":"Lacanobia nr. subjuncta Bold:Aab, 0925","parsed":{"rank":"SPECIES","genus":"Lacanobia","specificEpithet":"subjuncta","phrase":"Bold:Aab, 0925","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"nr."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4449,"input":"Abturia cf. alabamensis (Morton )","parsed":{"rank":"SPECIES","genus":"Abturia","specificEpithet":"alabamensis","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"cf."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Morton"],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4450,"input":"Abturia cf alabamensis (Morton )","parsed":{"rank":"SPECIES","genus":"Abturia","specificEpithet":"alabamensis","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"cf."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":["Morton"],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} {"line":4451,"input":"Calidris cf. cooperi","parsed":{"rank":"SPECIES","genus":"Calidris","specificEpithet":"cooperi","candidatus":false,"graftChimaera":false,"epithetQualifier":{"SPECIFIC":"cf."},"type":"INFORMAL","extinct":false,"doubtful":false,"manuscript":false,"state":"COMPLETE","warnings":[],"combinationAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false},"basionymAuthorship":{"authors":[],"exAuthors":[],"bracketedYear":false,"anonymous":false}}} From ccc8d6e0e5283b6ba27b39589a378be228453635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Thu, 19 Nov 2026 02:13:53 +0100 Subject: [PATCH 08/16] fix(parser): codes, unnamed families and bracketed rank notes - A code after a species may hold full stops and underscores: `Anabaena bergii PMC215.03`, `Escherichia coli STEC_H.I.8`, `Botrylloides cf. lenis SMRC_3.1`. Split at the full stop, the code became an author and its last digits were left over. A word labelling the code goes with it into the phrase (`spore IB.15`, `type A14`, `clone CK051`, `isolate Kol-2`), and so does a code glued to the epithet by a full stop (`Halimeda cuneata.Africa.1`). An abbreviated author glued to a year by a full stop (`Mill.1768`) is no code. - A culture accession takes the accessions of the same strain in other collections after `=`: `DSM 30006 = CIP 81.8`; the acronyms were a team of authors, often COMPLETE with nothing left over. - `fam.` and a letter, a code or `gen.` after a taxon designate an unnamed family in it, as `gen.` does for a genus: `Digenea fam. B sp. MAT.CG.2`. - A rank and an epithet in brackets after the author, and what follows, are left unparsed: `Camelina sativa (L.) Crantz (f. annua), f.1`. A cultivar after it stays the name's (`(f. biennis), cv. Annushka`). ChecklistBank: about 6,050 rows (2,962 dotted codes, 1,423 accessions with equivalents, 1,198 underscore codes, 406 labelled codes, 36 rank notes, 25 families); COL XR: none. --- .../nameparser/src/pipeline/stripandstash.rs | 120 +++++++++++++++-- crates/nameparser/tests/informal.rs | 122 ++++++++++++++++++ 2 files changed, 233 insertions(+), 9 deletions(-) diff --git a/crates/nameparser/src/pipeline/stripandstash.rs b/crates/nameparser/src/pipeline/stripandstash.rs index 33041ae..129c21a 100644 --- a/crates/nameparser/src/pipeline/stripandstash.rs +++ b/crates/nameparser/src/pipeline/stripandstash.rs @@ -64,6 +64,7 @@ pub(crate) fn run(ctx: &mut ParseContext) { s = strip_leading_genus_qualifier(ctx, s); s = strip_bracketed_genus_doubt(ctx, s); s = strip_shouted_vernacular(ctx, s); + s = stash_family_designation(ctx, s); s = stash_genus_designation(ctx, s); s = shorten_species_near(s); s = strip_rank_lineage(ctx, s); @@ -86,6 +87,7 @@ pub(crate) fn run(ctx: &mut ParseContext) { s = normalise_minor_shapes(s); s = repair_question_mark_in_word(ctx, s); s = stash_misplaced_qualifier(ctx, s); + s = stash_bracketed_rank_note(ctx, s); s = split_glued_year(ctx, s); s = strip_strain_designation(ctx, s); s = stash_trailing_rank_marker_code(ctx, s); @@ -614,6 +616,30 @@ static GENUS_DESIGNATION: LazyLock = LazyLock::new(|| { Regex::new(r"^(\p{Lu}\p{Ll}+)(?-u:\s+)gen(?:\.(?-u:\s*)|(?-u:\s+))(\S.*?)(?-u:\s*)$").unwrap() }); +/// A taxon followed by `fam.` and the designation of an unnamed family in it, a letter, a code or an +/// unnamed genus: `Digenea fam. B sp. MAT.CG.2`, `Mesostigmata fam. MRY1 sp.`, `Tetraphyllidea fam. +/// gen. sp. scpl02`. Group 1 is the taxon, group 2 the designation. A family's name after `fam.` +/// and the placeholders (`fam. indet.`, `fam. Incertae sedis`, `fam. n.`) are not. +static FAMILY_DESIGNATION: LazyLock = LazyLock::new(|| { + Regex::new(r"^(\p{Lu}\p{Ll}+)(?-u:\s+)fam\.?(?-u:\s+)((?:\p{Lu}|\p{Lu}+\d[\p{L}\d]*|gen\.)(?:(?-u:\s+).*)?)$") + .unwrap() +}); + +/// See [`FAMILY_DESIGNATION`]. As for [`GENUS_DESIGNATION`], the designation, marker included, is +/// the phrase of an informal name on the taxon, of rank SPECIES when it designates a species too, +/// else FAMILY. Read as is, `fam` became the epithet and the rest its author. +fn stash_family_designation(ctx: &mut ParseContext, s: String) -> String { + let Some(caps) = FAMILY_DESIGNATION.captures(&s) else { + return s; + }; + let species = GENUS_DESIGNATION_SPECIES.is_match(&caps[2]); + let phrase_start = caps.get(1).unwrap().end(); + ctx.name.phrase = Some(java_trim(&s[phrase_start..]).to_string()); + ctx.name.rank = if species { Rank::Species } else { Rank::Family }; + ctx.name.type_ = NameType::Informal; + caps[1].to_string() +} + /// A uninomial labelled with its rank, `Ojrotella gen.`. Group 1 is the uninomial. static BARE_GENUS_MARKER: LazyLock = LazyLock::new(|| Regex::new(r"^(\p{Lu}\p{Ll}+)(?-u:\s+)gen\.?(?-u:\s*)$").unwrap()); @@ -1163,15 +1189,35 @@ fn strip_strain_designation(ctx: &mut ParseContext, s: String) -> String { /// as any other (`Candidatus Caldatribacterium saccharofermentans OP9-77CS`), as does a code of /// capitals joined by an underscore (`PW_SP`), which no author has (#84). A slash may stand in the /// code and a genus in square brackets before it: `Agrobacterium pusense L2/2/1`, `[Eubacterium] -/// rectale M104/1` (#213). +/// rectale M104/1` (#213). Full stops and underscores may stand inside a code too, `Anabaena bergii +/// PMC215.03`, `Escherichia coli STEC_H.I.8`, `Botrylloides cf. lenis SMRC_3.1`, and a word labelling +/// it before it, `Acaulospora colossica spore IB.15` (see [`CODE_LABEL`]): split at the full stop, +/// the code became an author and its last digits were left over. static TRAILING_STRAIN_CODE: LazyLock = LazyLock::new(|| { Regex::new( - &r"^((?:Candidatus\s+)?\[?[\p{Lu}][\p{Ll}]+\]?\s+(?:(?:cf|aff|nr|near)\.?\s+)?[\p{Ll}]+)\s+([dr]?RNA[a-zA-Z0-9_\-]*|[\p{Lu}][\p{L}\d:/\-]*\d[\p{L}\d_\-:/]*|[\p{Lu}][\p{Lu}\d]*_[\p{Lu}\d_]*[\p{Lu}\d]|\d(?:[\p{L}\d_:/.\-]*[\p{L}\d])?)\.?\s*$" - .replace("", INFRASPECIFIC_HEAD), + &r"^((?:Candidatus\s+)?\[?[\p{Lu}][\p{Ll}]+\]?\s+(?:(?:cf|aff|nr|near)\.?\s+)?[\p{Ll}]+)\s+((?: