Sommaire

Aspell

aspell_new
aspell_check
aspell_check_raw
aspell_suggest

6.3.4 aspell_suggest

PHP 3>= 3.0.7, PHP 4 >= 4.0.0

Description

array aspell_suggest(resource dictionary_link ,string word )

aspell_suggest retourne un tableau contenant les orthographes possibles d'un mot mal formé.

Exemple avec aspell_suggest

<?php
  $aspell_link 
aspell_new("french");
  if (!
aspell_check($aspell_link,"testt")) {
    
$suggestions=aspell_suggest($aspell_link,"testt");
    for(
$i=0$i &ltcount($suggestions); $i++) {
       echo 
"Orthographes envisageables :@: " $suggestions[$i] . "&lt;br&gt;";
    }
  }
?>