Write a script that will help determine the indefinite article of a word ('a' or 'an'). The test strings below demonstrate some of the complexities of this grammar rule to be aware of. But test it aginst as many strings as you can think of.
Some conditions do not need to be considered for this challenge.
- Don't worry about "Uncountable" words such as "air" or "salt" they don't count (Ha! Pun!).
- Consider all words to be an "American" accent. "an herb" (American silent H) vs "a herb" (European hard H) when testing. Bonus points (not that there are points or anything) if you have the ability to match based of accent.