Commit 7213a91b authored by Dmitry Mozzherin's avatar Dmitry Mozzherin
Browse files

Fix #61 authors with "bis" suffix

parent a17bfe4a
Pipeline #78468083 passed with stages
in 8 minutes and 34 seconds
......@@ -2,6 +2,7 @@
## Unreleased
- Add [#61]: handle authors that end with a word "bis"
- Add [#60]: handle correctly deprecated ranks with greek letters.
- Add [#62]: parser breaks on ``Drepanolejeunea (Spruce) (Steph.)``.
......
......@@ -196,4 +196,5 @@ var nodeRules = map[pegRule]struct{}{
ruleUpperCharExtended: struct{}{},
ruleLowerCharExtended: struct{}{},
ruleApostrOther: struct{}{},
ruleAuthorSuffix: struct{}{},
}
......@@ -173,7 +173,7 @@ AuthorEmend <- 'emend' '.'? _
Author <- (Author1 / Author2 / UnknownAuthor)
Author1 <- Author2 _? Filius
Author1 <- Author2 _? (Filius/AuthorSuffix)
Author2 <- AuthorWord (_? AuthorWord)*
......@@ -196,6 +196,8 @@ AllCapsAuthorWord <- AuthorUpperChar AuthorUpperChar+
Filius <- 'f.' / 'fil.' / 'filius'
AuthorSuffix <- 'bis'
AuthorPrefixGlued <- ('d' / 'O' / 'L') Apostrophe
AuthorPrefix <- AuthorPrefix1 / AuthorPrefix2
......
This diff is collapsed.
package output
const Version = "v0.9.0-5-gc338865"
const Build = "2019-08-26_19:02:23UTC"
const Version = "v0.9.0-6-ga17bfe4"
const Build = "2019-08-26_19:30:47UTC"
......@@ -508,6 +508,11 @@ Velutina haliotoides (Linnaeus, 1758),
Velutina haliotoides (Linnaeus, 1758)
{"parsed":true,"quality":3,"qualityWarnings":[[3,"Unparsed tail"]],"verbatim":"Velutina haliotoides (Linnaeus, 1758),","normalized":"Velutina haliotoides (Linnaeus 1758)","canonicalName":{"simple":"Velutina haliotoides","full":"Velutina haliotoides"},"details":[{"genus":{"value":"Velutina"},"specificEpithet":{"value":"haliotoides","authorship":{"value":"(Linnaeus 1758)","basionymAuthorship":{"authors":["Linnaeus"],"year":{"value":"1758"}}}}}],"positions":[["genus",0,8],["specificEpithet",9,20],["authorWord",22,30],["year",32,36]],"surrogate":false,"virus":false,"hybrid":false,"bacteria":false,"unparsedTail":",","nameStringId":"59093ba7-64a1-53c4-9795-12de7ff9e718","parserVersion":"test_version"}
59093ba7-64a1-53c4-9795-12de7ff9e718|Velutina haliotoides (Linnaeus, 1758),|Velutina haliotoides|Velutina haliotoides|(Linnaeus 1758)|1758|3
Hennediella microphylla (R.Br.bis) Paris
Hennediella microphylla (R.Br.bis) Paris
{"parsed":true,"quality":1,"verbatim":"Hennediella microphylla (R.Br.bis) Paris","normalized":"Hennediella microphylla (R. Br. bis) Paris","canonicalName":{"simple":"Hennediella microphylla","full":"Hennediella microphylla"},"details":[{"genus":{"value":"Hennediella"},"specificEpithet":{"value":"microphylla","authorship":{"value":"(R. Br. bis) Paris","basionymAuthorship":{"authors":["R. Br. bis"]},"combinationAuthorship":{"authors":["Paris"]}}}}],"positions":[["genus",0,11],["specificEpithet",12,23],["authorWord",25,27],["authorWord",27,30],["authorWord",30,33],["authorWord",35,40]],"surrogate":false,"virus":false,"hybrid":false,"bacteria":false,"nameStringId":"e8cc6d9d-6e6c-53a1-99a9-59f636009ed0","parserVersion":"test_version"}
e8cc6d9d-6e6c-53a1-99a9-59f636009ed0|Hennediella microphylla (R.Br.bis) Paris|Hennediella microphylla|Hennediella microphylla|(R. Br. bis) Paris||1
#>
#SECTION: Binomial with an abbreviated genus<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment