The use of a/an depends entirely on spoken English, not written English. If you pronounce a word (ie. a noun or adjective) with an open vowel, then use "an".
...a European, a university, a euphemism... (all begin with a 'y' sound)
BUT: an hour, an heir, an 'M', an 80th...