As Maggy  thinks aloud  with words, she converses with herself, in much the same way that she interacted with her mother.
When Maggy thinks aloud, her conversation with herself is very similar to the way she interacted with her mother.