Are there any javascript libraries that exist for determining the indefinite article ("a" vs "an") of a noun?
I can start with a simple regex like so:
var pattern = /^([aeiou])/i;
pattern.test("umbrella");
but this doesn't handle a case like: "user" which should return false (you wouldn't say "an user clicked the button").