Well, that is a lazy way to determine when to use ‘a’ and ‘an’

10 Comments

  1. MrChashua

    func foundItem(itemText){

    var displayText = ‘You found a’

    if startsWithVowel(itemText) displayText.append(‘n’)

    displayText.append(‘ ‘ + itemText + ‘!’)

    }

  2. Doc_Chopper

    “an” is used before vowel, “a” before consonants. I thought even if English is a second language to you, that’s basic 1st grade stuff

  3. FieryHammer

    When you are just translating a game and can’t touch the logic of displayed text, that’s the only viable way.

  4. Artistic-Split-6641

    Similar design: Eat {1} Honey Fruit(s)

    Because the number “{1}” and noun behind the a[n] are variables.

  5. A less clumsy way to do this if you can’t touch the code of the game (since the Japanese original doesn’t need to care about this nonsense) is to use “one” instead of “a” or “an”:

    “You found one Crimson Stone!”

Write A Comment