I know gedit and some other text editors come with a spell-checker.

Aspell describes itself in Synaptic as a"spell-checker which can be used either as a standalone application or embedded in other programs".

How can it be embedded in Leafpad?

utu raised a similar question in October 2011 concerning ispell but got no reply.