Y is considered to be a vowel if… The word has no other vowel: gym, my.more