Breakdown of Quando os alunos precisam dos livros, o bibliotecário empresta-lhos.
o livro
the book
o aluno
the student (m)
quando
when
precisar de
to need
Questions & Answers about Quando os alunos precisam dos livros, o bibliotecário empresta-lhos.
How do we get the word -lhos at the end of the sentence?
-lhos is a contraction of two pronouns. It combines the indirect object lhes (to them, referring to the students) and the direct object os (them, referring to the books). When lhes and os meet, they merge into -lhos.
Does -lhos always mean "them to them"?
Not necessarily! The pronoun -lhos can be made from lhe (to him/her/you) + os (them) OR lhes (to them/you all) + os (them). It could just as easily mean "them to him" or "them to her". We know it means "them to them" here because the first part of the sentence gives us the context: os alunos (the students).
Why is it precisam dos and not just precisam os?
If the students only needed one book (o livro), how would the end of the sentence change?