Module Aspell

module Aspell: sig .. end
Spell-checking through the Aspell tool.

type error = 
| Execution_error of string list
| Invalid_character of char
| Invalid_line of string
exception Exception of error
type mistake = {
   word : string; (*Word that could not be found in the dictionary.*)
   suggestions : string list; (*Suggestions for unfound word.*)
}
The type of mistakes, as reported by Aspell.
val analyse_lines : ?path:string -> ?dictionary:string -> string list -> mistake list
analyse_lines ~path ~dictionary lines analyzes the words in lines through a Aspell-compatible executable (whose path is given by path, defaulting to "aspell"), using the language set by dictionary (defaulting to "en").

Raises Exception if either executable cannot be run, or returns invalid results.