Has anybody ever seen a paper or study on how the mind processes thoughts to come up with the perfect words?
It does?

Oft, in the stilly night,
Ere slumber's chain has bound me,
I think of what I might have said
When others were around me.
At such a woeful waste of wit
Constructively I weep,
And often, in the still of night,
I kick myself to sleep.