According to the Woordenboek der Nederlandsche Taal, the term is an evolution of the now obsolete interjections amij, amy or ammy (formed from ah and the personal pronoun mij; compare also French à moi), as an exclamation of sorrow or indignation, pain, aversion, pity, etc.