か~ないかのうちにAlmost before; no sooner than
か~ないかのうちに says that B begins almost at the same instant as A—so quickly that it is barely possible to tell whether A has fully happened.
Two events at virtually the same instant
ベルが鳴るか鳴らないかのうちに、生徒たちは教室を飛び出した。
The students rushed out of the classroom almost before the bell had begun to ring.
AnalyzeThe negative does not cancel the first event
The repeated positive and negative forms create the sense “whether A has happened or not.” This does not mean that A failed to happen. Instead, it places B at the barely perceptible boundary of A: A is beginning or just reaching completion when B starts.
彼は椅子に座るか座らないかのうちに、また立ち上がった。
He stood up again almost before he had sat down.
AnalyzeThe sitting and standing are presented as exceptionally close, not merely a short time apart.
Choosing the first verb form
The dictionary form presents A as barely beginning or occurring. The past form can place the viewpoint at A’s completion boundary, but the construction still leaves that completion difficult to confirm. In both patterns, B must begin virtually at once.
電車が駅に着いたか着かないかのうちに、ドアの前に人が集まった。
People gathered in front of the doors almost before the train had arrived at the station.
AnalyzeWhether A is clearly complete
か~ないかのうちに deliberately makes A’s completion hard to pin down. By contrast, たとたん presents A as completed and then introduces a sudden B.
照明が消えるか消えないかのうちに、会場から歓声が上がった。
Cheers rose from the venue almost before the lights had gone out.
AnalyzeThe cheering begins while the lights are only just going out.
照明が消えたとたん、会場から歓声が上がった。
The instant the lights went out, cheers rose from the venue.
AnalyzeHere the lights are presented as having gone out before the cheering begins.
More examples
ドアが開くか開かないかのうちに、猫が隙間から飛び出した。
The cat shot through the gap almost before the door had begun to open.
Analyze名前を呼ばれたか呼ばれないかのうちに、彼女は返事をした。
She answered almost before her name had been called.
Analyze雨が降り出すか降り出さないかのうちに、観客は一斉に傘を開いた。
The spectators all opened their umbrellas almost before it had begun to rain.
Analyze店が開いたか開かないかのうちに、最初の客が入ってきた。
The first customer came in almost before the shop had opened.
Analyze彼は目を閉じるか閉じないかのうちに、深い眠りに落ちた。
He fell into a deep sleep almost before closing his eyes.
Analyze終了のベルが鳴ったか鳴らないかのうちに、選手たちは動きを止めた。
The players stopped moving almost before the final bell had rung.
Analyze