~か ~ないかのうちに
Just as... / Before... had even finished, already... / Almost the instant... / The moment...
Structure
Vる・VたかVないかのうちに
Usage / Meaning
Expresses that before one action has even finished, another action takes place right away; or it describes another action occurring the instant one action has only just finished.
Literally, this pattern means “in the moment when it is not yet clear whether A has happened or not, B has already happened.” It is often used when it is unclear whether the first action has finished and the next action has already occurred.
Because this is a descriptive, narrating expression, the second clause is not used with the imperative, volitional, or causative forms, or with requests, invitations, etc.
This pattern conveys that the two events happen “almost simultaneously” (unlike the structure ~たとたん(に), where the first event is usually already over before the second occurs), and it is stronger than ~(か)と思うと/(か)と思ったら.
Just as... / Before... had even finished, already... / Almost the instant... / The moment...
Examples
19- 彼は、5時のベルが鳴るか鳴らないかのうちに手を止め、工場を飛び出した。
The instant the five o'clock bell rang, he put down his work and dashed out of the factory.
- 娘が出かけるか出かけないかのうちに雨が降り出した。
It started raining just as my daughter was leaving the house.
- 私の場合、ビールを一口飲むか飲まないかのうちに、顔が真っ赤になるんです。
In my case, my face turns bright red after barely a sip of beer.
- 水泳選手たちは、笛の音が鳴ったか鳴らないかのうちに、スタートした。
The swimmers started the moment the whistle sounded.
- 今朝まだ目が覚めるか覚めないかのうちに、友達が迎えに来た。
This morning, I had barely woken up when my friend came to pick me up.
- 子どもは「おやすみなさい」と言ったか言わないかのうちに、もう眠ってしまった。
My child had barely said “Good night” before falling asleep.
