English: A vs. An
192 points - yesterday at 8:41 PM
SourceComments
In Spanish, to say for example, "he is a doctor," you would say "él es médico." Which more literally translates to "he is doctor," which feels unintuitive coming from English. Spanish DOES have an equivalent for "a" - "un/una", so the natural thing for an English speaker to say would be "él es UN médico", but I understand that to be awkward/unnatural.
But then I realized, when you say the same sentence in plural - "they are doctors" - you don't have an article. You don't say "they are some doctors" (I had to Google, apparently "some" isn't an article anyway?)
So Spanish ends up more consistent - Singular: "Ăl es mĂ©dico." Plural: "Ellos son medicos."
Unlike English - Singular: "He is a doctor." Plural: "They are doctors."
Pre-LLM I was joking that real AI is whatever can make that decision correctly 100% of times.
> [LLM It doesnât need to be clean or maintainable. It only needs to be correct
But correctness is precisely the issue with LLMs?
But also
> I wouldâve spent more time on the trie simplification algorithm and less time on parsing cmudict and re-learning d3.js.]
You could've spent nothing on D3 because the result is bad/poorly readable - much worse than a simple table alphabetically-aligned interception table, which I could use to answer curious questions such as "how can I compare "A" and "O" in terms of exceptions? or "which letter has the most exceptions"?")
(and the blue color is out of place, vowel/consonant split should visually be the same "category", not black/colord. Red for exceptions is fine)
Consider other variations of this rule.
In French, one would say "l'hĂŽpital" rather than "le hĂŽpital" because the 'h' is an aspirated breath (try saying "a aspirated" rather than "an aspirated") leading to an initial vowel sound.
In Irish, the word for father is "athair". To say "her father" it becomes "a hathair" https://en.wikipedia.org/wiki/Prothesis_(linguistics)
In Turkish, it can be seen with araba (car). "I saw the car" -> "Arabayı gördĂŒm." (note the 'y' to avoid two vowels). Book is kitap and "I saw the book" is "Kitabı gördĂŒm." Which doesn't need the additional consonant sound between the final sound and the "ı".
Whatever language you speak, it likely has some form of this rule.
And other languages have the quirk too (like the "a unicorn" or "a university"). For example, in French there's lâhĂŽtel and l'hĂŽpital. But if you've got the hedge... it's la haie... or even more egregiously, the marmoset is le ouistiti.
âa San Francisco startupâ /É ËsĂŠn frÉnËsÉȘskoÊ ËstÉÉčtËÊp/
vs
âan SF startupâ /Én ËÉsËÉf ËstÉÉčtËÊp/
i.e. you have to mentally pronounce the phrase before choosing which form of the indefinite article to writeWhy is the aa-oo combination at the beginning of "hour" considered a vowel but the ee-oo in "uniform" is a consonant?
I guess this is a common idea now
Yet since a lot of our coding is for one-offs then we are allowing LLMs to blunt our skills
More generally, do you choose the article as if the first letter of the initialism were pronounced or as if the first word of the initialism were pronounced? Does it differ with acronyms? Does it differ between the UK and America?
That said, I think the former might be more common these days, so arguably the rules might just differ between written an spoken English in some dialects.
Firefox's local translation is pretty decent but not amazing. It did render this article's title as "Italiano: A vs. An", which I found pretty funny.
Years later a friend who was learning english asked me the difference between "a" and "an" and I realised I had no idea. I know when to use each, but not the rule governing why.
Fascinating how different the experience learning a language can be when do you explicitly, through learning the structure and rules, versus via immersion where you know what's right, but perhaps not why.
https://historyofenglishpodcast.com/
Happily sourced in Wikipedia so I don't have to figure out which episode I learned that from:
https://en.wikipedia.org/wiki/Adder <- see below the table in Taxonomy.
Examples from published articles: "Barely half and hour was on the clock" "the hospital, which is in and area of central Homs" "spiraled into and armed uprising and civil war" "During and interview with ABC in July"
(Besides, it clarifies the colour scheme â the red vs black went totally unnoticed to my colourblind eye.)
The rule is fairly simple as it was taught to me - if the word (apple) begins with a vowel sound, use âanâ to avoid cacophony. Same way one uses âoâ (means âorâ in Spanish) but âuâ if the next word begins with a vowel.
What matters is the sound though, not the character - so itâs not as trivial to algorithmize. Eg. A hammock, an hour.
Now, if they used the British-style "an 'istoric event", that's fine. In American we don't pronounce the "h" in "herb", so someone here saying "an herb garden" would follow the rule correctly and sound normal.
But "history" with the full "h"? To me it screams "this person memorizes without understanding", or at least "this person desperately wants to sound posh but fails". It's the verbal equivalent of wearing a polo shirt with a giant logo, imagining if a tiny one is fancy, then an enormous one must surely be exactly what rich people would wear.
edit: OK, the ("a") "nvidia employee" seems to provide a counterexample, but is it really about names? I think it's about repetition, "an Nvidia employee" just sounds strange due to the "en-en".
But yeah, maybe it is a rare exception, because "an n-gram" is probably standard.
I'm perfectly fine with applying the rule to all other proper names? E.g. "a Microsoft employee" or "an HSBC product".
The writeup lost me there, when it jumps to hard-codes lists using this example as justification. AI slop?
> The actual rule is not whether the written word starts with a vowel letter, but whether the spoken word starts with a vowel sound.
The only exemption I know about is emphasis by pause, it allows to use "a" before a vowel sound in some exceptional cases.
So the rest of the goal description is solely about how words are pronounced? I mean that the question whether to use "a" or "an", and wanting to define a function that decides this, is equivalent to aiming at a function that decides whether the pronunciation of a word starts with an audible consonant or vowel.
This is described on the site, I see now. But it jumps to data science and statistics before even stating the problem accurately?
I still don't know what kind if "exceptions" it talks about, because it already treats things like "an HN submission" as an "exception", when it clearly isn't one.
(Genderswappedstories.com)
And I found another English weirdness trying to swap between his/him and her/hers.
Him always swaps to her
Eg it was him - it was her
But his can swap to her or hers
It is his -> it is hers
It is his thing -> it is her thing.
And her can also swap to him or his
It was her -> it was him
It was her thing -> it was his thing
And hers always swaps to his.
So hers and him are the only completely predictable - and they donât even mean the same thing!
I had to write a very in-depth algorithm to work out the type of words surrounding the words - if they are nouns, adjectives etc - in each sentence to correctly guess the swaps. But even after that some were unpredictable due to word order keeping the important words apart. all I could do 100% reliably was to flag the ones that might be ambiguous to check. Of course now I could just get an LLM to check it!
Can anyone explain why this happens?
[Why is this getting voted down? Bizarre.]
"An 'H'", and "a 'H'" are both equally valid following this rule (by my interpretation), depending on how you pronounce the letter 'H'.