Molly does not actually learn to speak "porpoise" in the Peter and the Starcatchers books.
The Porpoise is a friendly character that communicates through clicks and whistles. Molly appears to understand the Porpoise's intentions as she interacts with it, but she does not learn to speak its language.
The Porpoise serves as a symbol of communication and understanding, highlighting the importance of nonverbal communication and empathy.