The traditional 'part of speech' is conjunction . It's a complementizer. It turns a sentence into a noun clause -- in this case the noun clause which is the subject of the sentence, as you correctly point out.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Hongkiethere should be a "was" before "confused"Here's the sentence again.