gnames / gnparser

GNparser normalises scientific names and extracts their semantic elements.
MIT License
40 stars 5 forks source link

Parse hyphenated genera that start with a 2-letter segment; closes #205 #206

Closed tobymarsden closed 2 years ago

tobymarsden commented 2 years ago

This PR allows genera with hyphenated names that start with a 2-letter segment, e.g. Le-monniera to be parsed.

Note that if both this and PR #204 get merged, after merging the PEG rule CapWordWithDash will need to end up as:

CapWordWithDash <- (CapWord1 / TwoLetterGenusDashedSegment) Dash (UpperAfterDash / LowerAfterDash)
tobymarsden commented 2 years ago

The PR has been updated to only support parsing genera starting with the following 2-letter segments before the dash:

De-
Eu-
Le-
Ne-
dimus commented 2 years ago

Merged it manually