Independent clauses are joined by conjunctions; such as, hence, but, and, although, etc.

Dependent clauses are joined to the sentence by relative adverbs; such as, where, when, etc., or by relative pronouns; as, who, what, etc. These dependent clauses may have the same office in the sentence as nouns, pronouns, adjectives, or adverbs. (See §7.)

79. Case and Number of Relative and Interrogative Pronouns. Failure to use the proper case and number of the relative pronouns has already been touched upon (see §29), but a further mention of this fault may well be made here.

The relative pronoun has other offices in the sentence than that of connecting the dependent and principal clauses. It may serve as a subject or an object in the clause. The sentence, I wonder whom will be chosen, is wrong, because the relative here is the subject of will be chosen, not the object of wonder, and should have the nominative form who. Corrected, it reads, I wonder who will be chosen. Examine the following sentences:

Wrong: We know who we mean.
Right: We know whom we mean.
Wrong: You may give it to whoever you wish.
Right: You may give it to whomever you wish.
Wrong: Do you know whom it is?
Right: Do you know who it is? (Attribute complement.)
Wrong: Everybody who were there were disappointed. (Disagreement in number.)
Right: Everybody who was there was disappointed.

The relative pronoun takes the case required by the clause it introduces, not the case required by any word preceding it. Thus, the sentence, He gave it to who had the clearest right, is correct, because who is the subject of the verb had, and therefore in the nominative case. Give it to whomever they name, is right, because whomever is the object of they name.

Errors in the use of interrogative pronouns are made in the same way as in the use of the relatives. The interrogative pronoun has other functions besides making an interrogation. It serves also as the subject or object in the sentence. Care must be taken, then, to use the proper case. Say, Whom are you looking for? not, Who are you looking for?