require "xmlrpc/client" # Make an object to represent the XML-RPC server. server = XMLRPC::Client.new( "archimedes.mpiwg-berlin.mpg.de","/RPC2","8098"); # call the lemma service for some latin words. result = server.call("lemma","-L",['est','trutina']) puts 'results for "est" "trutina": ' p result puts "\n" # call the lemma service for full morphological analysis for some latin words + one non-latin word, which should return nil. result = server.call('lemma', "-L",['est','trutina','howdy'],'full') puts 'results for "est" "trutina" and "howdy" with pos info: ' p result puts "\n" ### # some greek words with pos info via the 'full' tag result = server.call('lemma', "-GRC",['lu/w','dhmokrati/as'],'full') puts 'results for greek "lu/w" "dhmokrati/as with pos info' p result puts "\n"