The relative pronoun "that" is used to connect the two clauses "you lent me" and "I gave to John." It's acting as an object, and it's telling us more about the book.
Definition-
Relative pronouns are words like "who," "whom," "whose," "that," and "which." They're used to connect two clauses together, and they often come at the beginning of a relative clause.
For example,
The man who called yesterday is coming back today.
The relative pronoun "who" is used to connect the two clauses "the man" and "called yesterday."
It's acting as a subject, and it's telling us more about the man.
We can also use relative pronouns as the object of a relative clause, as in this example:
I gave the book that you lent me to John.
Point to remember-
For example,
The man (that) you lent the book to is coming back today.
In this example, the relative pronoun "that" is Elliptical, or left out.
Here are some other examples of elliptical relative clauses:
The book (that) I gave to John is on the table.
Remember, we only use relative pronouns when we need to connect two clauses together. If we don't need to connect them, we can just leave the relative pronoun out.
Types of relative pronouns-
There are six types of relative pronouns:
1. who
2. whom
3. which
4. that
5. whose
6. where
Examples of relative pronouns-
The relative pronoun who refers to the subject of the clause in which it appears.
For example:
The woman who is singing is my mother.
The relative pronoun whom refers to the object of the clause in which it appears.
For example:
The man whom I saw was very tall.
The relative pronoun which refers to the object of the preposition in the clause in which it appears.
For example:
The book which I am reading is very interesting.
The relative pronoun that refers to the subject or object of the clause in which it appears, depending on the function it has in the sentence.
For example:
The house that I am buying is very big.
Conclusion-
Relative pronouns are words that connect two clauses together and often come at the beginning of a relative clause. They can be used as subjects or objects.