Trying to build a function a_or_an(word) proves hilariously challenging for English, surprising no one.
The author catches one dialectal land mine: herb begins with a vowel sound in American English and an /h/ sound in British English. But I see at …