I'm working a templatetag that determines whether to use 'a' or 'an'
in front of English words. My particular use case for this is in a
tumblelog app I'm developing - many different types of entry may be
added (link, html, quote, etc), and I'm linking to the 'Add a[n]
entry' pages by iterating ove
On Wed, Jan 6, 2010 at 5:24 AM, harrym wrote:
> I'm working a templatetag that determines whether to use 'a' or 'an'
> in front of English words. My particular use case for this is in a
> tumblelog app I'm developing - many different types of entry may be
> added (link, html, quote, etc), and I'm
Thanks for your reply - I'll have a look into how this would work with
other languages and get back to you if it looks like it would work
easily with other languages.
Regards,
Harry
On Jan 6, 3:45 am, Russell Keith-Magee wrote:
> On Wed, Jan 6, 2010 at 5:24 AM, harrym wrote:
> > I'm working a t
On Tuesday 05 January 2010 21:24:13 harrym wrote:
> I'm working a templatetag that determines whether to use 'a' or
> 'an' in front of English words. My particular use case for this is
> in a tumblelog app I'm developing - many different types of entry
> may be added (link, html, quote, etc), an
> Hmm, can it handle the following?
>
> an honest man
> a history book
> an historical book (debatable)
It can't, the rules for the indefinite article around 'h' are complex
and depend on the etymology of the word used. To add complexity the
lexicographic rules are often different to the rules
On Wed, Jan 6, 2010 at 8:17 AM, sago wrote:
> What is it about Django and NT scholars - have you come across James
> Tauber (of Pinax fame?)
There are at least three Django committers who can list one or another
ancient Greek dialect among their studies. Not sure why that is, but
it does make for
The code I've got so far works pretty well - I've tested it on some
medium-sized corpora and the only times the expected result was
different from the actual result was when the corpus was wrong. The
code works by first checking a few specific rules for numbers and
acromyns, then checking against a
2010/1/6 sago :
>> If you present some research to
>> demonstrate how this tag could/would work for non-English languages,
>> it would be a lot more compelling.
>
> That's not going to work, in any meaningful sense. That peculiarity of
> the article is highly English-specific. The generalization wo
More of an academic question, as it likely isn't a feasible solution for
Django, but might a soundex solve this problem? Best I can tell, rules for
articles, without exception, are based on the pronunciation of the following
word..
Of course, phonology can be regional, subjective, and unpredictabl
On Jan 5, 9:24 pm, harrym wrote:
> I'm working a templatetag that determines whether to use 'a' or 'an'
> in front of English words. My particular use case for this is in a
> tumblelog app I'm developing - many different types of entry may be
> added (link, html, quote, etc), and I'm linking to
10 matches
Mail list logo