A scientific name usually consists of three pieces of information: genus, epitheton, and author. A simple example would be the following:
Acanthus ilicifolius L.
- Genus: Acanthus
- Epitecton Species: ilicifolious
- Posted by: L.
Easy. However, the issue becomes more complicated when we deal with hybrids, subspecies / varieties / forms, several authors and other inconsistencies. In these cases, the name of the view may look like this:
Wed Andrographis paniculata (Burm.f.) Wall. ex nees
- cf .: view was not defined with 100% certainty
- Genus: Andrographis
- Epitecton species: paniculata li>
- Posted by (Burm.f.) Wall. ex nees
or that:
Ipomoea pes-caprae (L.) DC. subspecies. brasiliensis (L.) Ooststr.f
- Genus: Ipomea
- Epitecton Species: pes-caprae
- Posted by: (L.) DC.
- Epithet subspecies: brasiliensis
- Subspecies Author: (L.) Ooststr.f
I am trying to find a reliable way to deconstruct such names. I could write some hacker code using tc if if / else, but I'm looking for something more elegant (and reliable). I was thinking of some kind of parser that parses the name like a calculator that parses a mathematical expression. Unfortunately, I am not the most difficult programmer, and I did not even write a real parser before, and I do not know if this will make sense in this case, since there are quite a lot of variations in scientific names. What do you think is the best way to solve this problem? The preferred language is R, possibly also Julia, if it is better suited to the task.
Hav0k source share