Hi there,
I am making a spell checker program with php with words stored in mysql. I use it to check unicode languages. But I do not get good suggestions with similar_text with percentage above 82. But if I decrease this percentage, I get many useless words. How can I make it better?
Here is a part of my code :
while ($row = mysql_fetch_assoc($words)) {
$word = $row['word'];
similar_text($word, $str, $percent);
if ($percent > 82) {
echo "<span class=\"sugg\">$word </span>";
}
}