Subject: Re: bug#79469: 31.0.50; Ungrammatical sentence from describe-function

From: Joost Kremers <[email-masked]>
Date: Fri, 19 Sep 2025 09:09:51 +0200

On Fri, Sep 19 2025, Eli Zaretskii wrote:
>> From: Joost Kremers <[email-masked]>
>> Cc: Eli Zaretskii <[email-masked]>,  Stephen Berman <[email-masked]>,
>>   [email-masked]
>> Date: Fri, 19 Sep 2025 00:46:53 +0200
>> 
>> > How's this?
>> 
>> > +                    (concat (if (string-match-p "\\`[aeiou]" (symbol-name type))
>> 
>> Potentially problematic, because not every word that starts with "u" gets
>> "an". And sometimes words starting with "h" also need "an".
>
> Right.  And how harder would it be to write a more generally correct
> function?

It's impossible if you only know the spelling of a word and not its
pronunciation, which is the case here. So you'd either have to hard-code a
bunch of exceptions, or go online and consult Wiktionary or some other
resource to get the pronunciation.

Which hardly seems worth the trouble...

-- 
Joost Kremers
Life has its moments