Is あらまあ linked to Malay "alamak", and which came first?


A [popular theory](https://says.com/my/lifestyle/did-you-know-that-the-
japanese-also-use-the-malay-expression-alamak) claims that that the Japanese
expression あらまあ is directly related to the Malay _alamak_ (pronounced more or
less identically, since the "k" is just a glottal stop), with speculation
about which one came first and how it was imported (Malay traders in Japan,
Japanese soldiers in Malaya during WW2, etc).

**Is there a known etymology in Japanese, and/or evidence of use before the
1940s?**

My uninformed opinion: あらまあ sounds to me like a portmanteau of あらあら and まあまあ,
which are similar expressions of condolences/sympathy.




From the entry of
[精選版日本国語大辞典](https://kotobank.jp/word/%E3%81%82%E3%82%89%E3%81%BE%E3%81%82-428056):

> ※闇桜（1892）〈樋口一葉〉「あらマア何(どう)しませうねへ」

So the word form is attested at least since late 19th century.

As you said, this is a combination of あら + まあ.
[あら](https://kotobank.jp/word/%E3%81%82%E3%82%89-427730) can be traced back to
the 10th century and [まあ](https://kotobank.jp/word/%E3%81%BE%E3%81%82-632683)
to the 18th century with basically the same meaning as in today (interjection
of amazement).

> ※落窪（１０Ｃ後）一「あらことごとし」
>
> ※洒落本・妓者呼子鳥（1777）四「そりゃアマアほんの事かへ」

Thus it should be natural to assume that it has developed independently from
the Malay phrase, and their resemblance is a coincidence. Of course, one can
argue that the either side of people learned the specific word used in the
other and mimicked the phrase by a novel combination of native components, but
that would be difficult to prove or disprove.




From the entry of
[精選版日本国語大辞典](https://kotobank.jp/word/%E3%81%82%E3%82%89%E3%81%BE%E3%81%82-428056):

> ※闇桜（1892）〈樋口一葉〉「あらマア何(どう)しませうねへ」

So the word form is attested at least since late 19th century.

As you said, this is a combination of あら + まあ.
[あら](https://kotobank.jp/word/%E3%81%82%E3%82%89-427730) can be traced back to
the 10th century and [まあ](https://kotobank.jp/word/%E3%81%BE%E3%81%82-632683)
to the 18th century with basically the same meaning as in today (interjection
of amazement).

> ※落窪（１０Ｃ後）一「あらことごとし」
>
> ※洒落本・妓者呼子鳥（1777）四「そりゃアマアほんの事かへ」

Thus it should be natural to assume that it has developed independently from
the Malay phrase, and their resemblance is a coincidence. Of course, one can
argue that the either side of people learned the specific word used in the
other and mimicked the phrase by a novel combination of native components, but
that would be difficult to prove or disprove.

