Ad verbum — (word for word).

The school girl crammed the poem ad verbum.