Why does the spelling of the word “y” change at times?

Why does the spelling of the word “y” change at times?

It is changed depending on the person of the verb.

It is changed depending on the gender of the noun.

It is changed to agree with the tense.

It is changed due to the sound of the word following it.

The correct answer is: It is changed due to the sound of the word following it. The spelling of the word "y" can change when it is followed by certain vowel sounds. This is done for pronunciation purposes to maintain the correct sound in the word. Examples include changing "y" to "i" before a vowel sound, as in "happy" or "cry", and changing "y" to "ie" before adding the suffix "-ing", as in "flying" or "trying".