Note :

Le module SPELL permet d'utiliser la vérification orthographique.

Il offre les fonctions suivantes:


spell

~spell() permet de vérifier l'orthographe d'un texte.
La fonction prend 4 arguments :

Le résultat est un tableau dont le premier élément est le texte annoté et les suivants sont chacun un tableau des propositions correspondant à une erreur.

~spell("ploq", "error", "fr")


Tableau renvoyé :

[ '<span class="error">ploq<sup>1</sup></span>', [ 'plop', 'plot' ] ]

add_word

~add_word() d'ajouter un mot à un dictionnaire personnel.
La fonction prend 3 arguments :

~add_word("/tmp/dico", "Linux")