(* Wrapper around Perl Net::Google::Spelling class. * Copyright (C) 2003 Merjis Ltd. * $Id: pl_Net_Google_Spelling.ml,v 1.1 2003-10-14 16:05:22 rich Exp $ *) open Perl class net_google_spelling sv = object (self) method key = string_of_sv (call_method sv "key" []) method set_key v = call_method_void sv "key" [sv_of_string v] method phrase phrases = string_of_sv (call_method sv "phrase" (List.map sv_of_string phrases)) method suggest = string_of_sv (call_method sv "suggest" []) end (* let new_ = ... *)