ezwelty
18b47ab7b1
Move type definitions to separate module
2024-09-24 23:11:41 +02:00
ezwelty
491f55b8d3
Replace @return with standard @returns
2024-09-24 23:11:41 +02:00
ezwelty
6679474ccd
Parse hybrid formulas and refactor parsing code
2022-01-09 22:32:44 +01:00
ezwelty
467e807139
Make scientific name parsing more flexible
...
- Clean before parsing (latinize, trim and squeeze whitespace)
- Use case-insensitive matching if all upper or lower case
2021-12-27 09:42:00 +01:00
ezwelty
9a76827150
Add modules to API docs, using @private to hide some
2021-05-27 15:52:45 +02:00
ezwelty
2bb2bc1d37
Latinize scientific name fields before parsing
2020-07-23 21:45:08 -06:00
ezwelty
d2c5af1f4d
Only warn of inconsistent name fields if present in input
...
A warning is raised if the species or cultivar parsed from `scientific`
is inconsistent with fields `species` or `cultivar`.
2020-07-23 18:12:36 -06:00
ezwelty
f8fa4a3514
Improve parsing of secondary name fields
...
- Convert `genus` to sentence case
- Convert `cultivar` to title case
- Convert `species` to lower case
- If `species` is 'x', '×', or 'hybrid', flag as hybrid
2020-07-23 17:56:59 -06:00
ezwelty
a2d123a534
Parse 'hybrid' after genus as hybrid flag
2020-07-23 11:16:57 -06:00
ezwelty
82cb5de8b7
Drop species and infraspecies rank if blank
2020-07-19 18:45:28 -06:00
ezwelty
33a105d193
Parse names with hyphen in genus or (infra)species
2020-07-19 18:11:47 -06:00
ezwelty
eb63775657
Organize scientific name methods into a class
2020-07-19 12:03:25 -06:00
ezwelty
9daedd73dc
Print infraspecies epithet only if not missing
2020-07-19 12:02:37 -06:00
ezwelty
834637d624
Document format of parsed scientific name
2020-07-19 12:02:12 -06:00
ezwelty
7cb9d18df2
Print parsed scientific name
2020-07-11 18:26:35 -06:00
ezwelty
60cc1a07d0
Add basic scientific name parser
2020-05-25 21:45:57 -06:00