For anyone else wondering what the problem is supposed to be with that example: some English speakers call ubuntu "you buntu" whereas uber is just pronounced, well, as you write it and not "youber"
I used Ubuntu before learning English so it took me a while to realise
To keep it simple, you use an when the first letter of the next word sounds like a vowel when pronounced (vowel sound) and appplies to ancronyms too. Otherwise you use a.
That is probably on of the most confusing things about English. What do you mean "sounds like a vowel"? All vowels sound like vowels, what else would they sound like? While we're at the subject, why is Y not a vowel (except when it is) and why can you have more than one vowel in a syllable. In the example in the article they have unicorn, which is clearly spelled wrong if English were to make sense. The correct spelling should be "junicorn". Fixed.
Counting the number of syllables in a language like Danish means you just count the number of vowels. A syllable must have one, and only one, vowel. A word like "you", if it existed in Danish, would have three syllables, because all those letters are vowels, at any point in time.
Yes, I'm well aware. I'm responding to the code in the OP's article (you need to click through the link at the bottom of the HN submission--I have no idea why the OP blog has two separate pages for this).
The MRI example is perfect, but I feel like the yogurt one is a bad example given the "and sometimes Y" (is a vowel) thing, or do we just ignore that for a vs an?
Like in this context, do we always treat Y when pronounced like "Yes" or "Yogurt" as a consonant?
I think it'd be reasonable to keep uber, but I had dropped it because it wasn't in /usr/share/dict/words on Linux or Mac. That was a quick&dirty way to filter out proper names, but it misses some other words too.
I added the word list to the main article. The rule is for two words, ubiquitous and ubiquity, so maybe the rule should be tightened to word.startswith("ubiqu").
Uber and Ubuntu are not in my word list (which attempts to exclude proper nouns), but maybe I should add uber, uberant, uberous, uberously, uberousness, uberty, uberties.
I had a self-imposed time limit of 1 day for this side quest, but there are lots of ideas in the comments here so someday I may come back to this project and give it another day.
An uber-rich man riding in an Uber installed an Ubuntu package.
I'm actually a bit surprised by this rule. Is this line there entirely due to the word "ubiquitous"? I think it is.