Great idea! I have just found some code by your link. I think you ment something similar.
<?php
$pspell_link = pspell_new("en");
if (!pspell_check($pspell_link, "testt")) {
$suggestions = pspell_suggest($pspell_link, "testt");
foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion<br />";
}
}
?>
Here is the page where I have found it - link.
As far as I understand the main problem is to get a list of possible words.