text: It's a dependent clause that acts as a noun. For example: "Whoever thought of that idea is a genius" The noun clause in that is "whoever thought of that idea" this entire phrase is subject of that sentence.