module Aspell:sig
..end
type
error =
| |
Execution_error of |
| |
Invalid_character of |
| |
Invalid_line of |
exception Exception of error
type
mistake = {
|
word : |
(* |
Word that could not be found in the dictionary.
| *) |
|
suggestions : |
(* |
Suggestions for unfound word.
| *) |
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.