What if she, Marilla, should indulge Matthew’s unaccountable whim and let her stay?
That was Matthew’s way—take a whim into his head and cling to it with the most amazing silent persistency—a persistency ten times more potent and effectual in its very silence than if he had talked it out.
There are no more uses of "whim" in the book.
Show samples from other sources
They flew to Paris on a whim.
This is the devilish thing about foreign affairs: they are foreign and will not always conform to our whim.