/aɪ/1 syllableinterjection, noun, adverb#12,527 of the 30,000 most common English words
Ay reaches English through Middle English, Anglo-Norman, Old French and Middle French. Ay today means “Ah! alas! Expressing anger, alarm, frustration, pain, etc”.
Etymology of ay
From Middle English ei, ej, ey, eye, ultimately imitative of the natural utterance, although probably also influenced by Anglo-Norman and Old French ahi, Old French haï, and Middle French aï, aïe, ay.
Etymology text from Wiktionary (CC BY-SA 4.0). Asterisked forms are reconstructed, not attested.