Used when something bad or dramatic almost happened but was narrowly avoided. Often followed by a phrase describing the averted outcome, such as ~ところだった.
Kana-only adverb; no kanji form is used in modern Japanese.
アワヤUsage4%
Etymology
The origin is uncertain. It may be related to the interjection あわ (expressing surprise or alarm) combined with the particle や, but the exact derivation is unclear.