~の/~こと({名詞化|めいしか})
(the act of) …ing (turning a verb into a noun)
N4
V plain form + の / こと + は / が / を…
の and こと turn a whole clause into a noun: {料理|りょうり}を{作|つく}るのが{好|す}きです. With verbs of direct perception or physical involvement ({見|み}る, {聞|き}こえる, {手伝|てつだ}う, {待|ま}つ) only の works: I can see children playing. Fixed patterns like ことができる, ことがある and {趣味|しゅみ}は~ことです use こと. Learners use the bare verb as a noun (✗{泳|およ}ぐが{好|す}きです); の or こと is required.
Examples
私は日本の歌を歌うのが好きです。
I like singing Japanese songs.
私の趣味は写真を撮ることです。
My hobby is taking photos.
夜、隣の部屋で誰かが話しているのが聞こえました。
At night I heard someone talking in the next room.
Exercises
1.毎朝早く起きる は大変です。
2.マイさんが駅の前を歩いている が見えました。