B
bernard
Hi,
Does anyone know of a way to allow Perl to determine whether a word
would require the indefinite article 'a' or 'an'. Looking at style
guides, such as the one found at:
http://owl.english.purdue.edu/handouts/esl/esliart.html
we see that it is NOT as simple as just looking for an aeiou at the
beginning of a word.
The reason I want to do this is because I am pulling a noun from a
database and want my program to be able to determine what article to
use with it. In theory, I could add a column to the table that
indicates which article is appropriate. But I was wondering if there
was a more flexible solution, perhaps based on some sort of phoenetic
routine.
Bernard.
Does anyone know of a way to allow Perl to determine whether a word
would require the indefinite article 'a' or 'an'. Looking at style
guides, such as the one found at:
http://owl.english.purdue.edu/handouts/esl/esliart.html
we see that it is NOT as simple as just looking for an aeiou at the
beginning of a word.
The reason I want to do this is because I am pulling a noun from a
database and want my program to be able to determine what article to
use with it. In theory, I could add a column to the table that
indicates which article is appropriate. But I was wondering if there
was a more flexible solution, perhaps based on some sort of phoenetic
routine.
Bernard.