Commit b40c8b4a authored by Clement GAUDUCHEAU's avatar Clement GAUDUCHEAU
Browse files

levenshtein fonctionne

parent d014f863
......@@ -20,7 +20,7 @@ if(isset($_POST["motCher"])){// mot mal orthographié
'radish','carrot','pea','bean','potato','bananas',);
$filename = "dico-en_10.txt";
$filename = "dico-en.txt";
$handle = fopen($filename,"r");
......@@ -28,7 +28,9 @@ if(isset($_POST["motCher"])){// mot mal orthographié
fclose($handle);
$split = explode(" ",$content);
$split = explode("\n",$content);
echo $split[0];
// aucune distance de trouvée pour le moment
$shortest = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment