Abbreviates an English name according to the rules of
the system. Takes a string containing a name either
in the usual word order (e.g.,
Thrush") or in “last,
first” order (e.g.,
Returns a normalized bird code: the argument is uppercased and right-padded with spaces to the maximum code length.
Splits an inverted name and returns
returns a tuple
eng contains no comma,
will be equal
will be an empty string.
eng contains a comma,
will be the
part after the first comma (less any leading or
trailing whitespace), and
will be everything up to
(but not including) the first comma.
Given an English name in the customary order, such as “American Robin”, returns it in the inverted form, e.g., “Robin, American”.
Given an English name in the inverted form, such as “Robin, American”, returns the customary form, e.g., “American Robin”.