Scripts copied (and amended) from https://github.com/EmptyJackson/unifloral/tree/main - thank you to the authors!