It functions here like a noun.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnonymousIs "cooking" a verb phrase or a noun phrase?Technically it's a gerund phrase, but it serves as the complement of the verb just as a noun phrase would do.