This is an N3 and N2 pattern.
ところだった
How it's built1
Examples2
very nearly — one step from happening, then avoided
階段で足を滑らせて、危なく転ぶところだった。
kaidan de ashi o suberasete, abunaku korobu tokoro datta.
I slipped on the stairs and came within an inch of falling. neutral
あぶな!財布忘れるとこだった。
abuna! saifu wasureru toko datta.
Phew — I nearly left my wallet behind. casual
Notes
flips to ところだ's plain past instead (着いたところだった means "had
just arrived").
- dictionary form〜ところだった~tokorodatta
味わうところだった
- もう少しでmousukoshidealternant
the usual partner adverb, sitting right before the verb and measuring the margin as small — もう少しで遅刻するところだった。
- もうちょっとでmouchottodecolloquial
ちょっと for 少し, and it stays in speech — もうちょっとで乗り過ごすところだった。
- あと少しでatosukoshidealternant
counts down what was still missing rather than the gap, fitting a near miss you regret — あと少しで合格するところだったのに。
- 危なくabunakualternant
names the danger instead of the margin, fitting an outcome you're glad to have escaped — 危なく財布を落とすところだった。
- dictionary formとこだったtokodattacontraction
味わうとこだった
speech clips ところ to とこ — 危なく忘れるとこだった. Conversation and messaging only.
- dictionary formpoliteところでしたtokorodeshita
味わうところでした
No same-meaning pattern.
No opposite.