Hacker News front pageRed Blob Games1 min readintermediate
English: A vs. An
Summary
The indefinite article in English depends on the initial sound, not the spelling. An analysis of the CMU pronunciation dictionary shows only 129 of 32,455 words are exceptions, and the first two letters are usually enough to decide between “a” and “an”.
- Rule for a/an is based on the spoken initial sound, not the first letter.
- Only 129 out of 32,455 words in the CMUdict require exceptions.
- The first two letters of a word are sufficient to determine the correct article in most cases.
- A simple lookup using CMUdict and a trie simplification can implement a reliable a_or_an function.
Anyone building a text‑generation system needs a reliable a/an selector to avoid awkward phrasing.
6/10


