mtu
Warlord
Whenever I play the game, this things bugs me, but most of the time I forget it too quickly to post about it - but here I go now.
Well, I learned in fifth grade (here in Germany), that when in English, the indefinite article "a" was followed by a vowel or a word with a starting sound like a vowel (this is true of abbreviations like NSA or NBC, because the N is pronounced "en"), it was appended with the letter "n", so as to form "an".
This is missing from Civ4 entirely. You have "a archer" attack you, and "a enemy horse rider" was sighted near your borders. I can't imagine that something like this would be hard to code... It could look like this:
And the output would be "You have attacked an Archer." Change the variable word to "Commando", and the output will say "a" intead of "an".
Well, I learned in fifth grade (here in Germany), that when in English, the indefinite article "a" was followed by a vowel or a word with a starting sound like a vowel (this is true of abbreviations like NSA or NBC, because the N is pronounced "en"), it was appended with the letter "n", so as to form "an".
This is missing from Civ4 entirely. You have "a archer" attack you, and "a enemy horse rider" was sighted near your borders. I can't imagine that something like this would be hard to code... It could look like this:
Code:
def adapt_article(word):
if word[0].lower() in ['a', 'e', 'i', 'o', 'u']:
return "n"
elif word[0] in ['F', 'H', 'L', 'M', 'N', 'R', 'S', 'X'] and word[1].isupper():
return "n"
else:
return ""
word = 'Archer'
print "You have attacked a" + adapt_article(word) + " " + word + "."
And the output would be "You have attacked an Archer." Change the variable word to "Commando", and the output will say "a" intead of "an".