I have a question for a teacher. Letters can be pronounced differently depending on adjacent sounds and stress patterns. Is there a rule about the letter t? When is it pronounced like the letter d? Does the stress in a word have to be on a certain syllable?
It's called flap rule. When /t/ or /d/ occurs between a stressed and an unstressed vowel, they both become a flap or a tap. For example, rider and writer.