NAME
Net::Google::Spelling - simple OOP-ish interface to the Google SOAP API for spelling suggestions
SYNOPSIS
use Net::Google::Spelling;
my $spelling = Net::Google::Spelling($service,\%args);
$spelling->phrase("muntreal qweebec");
print $spelling->suggest()."\n";
DESCRIPTION
Provides a simple OOP-ish interface to the Google SOAP API for spelling suggestions.
This package is used by Net::Google.
Class Methods
$pkg = Net::Google::Spelling->new($service,\%args)
Where $service is a valid GoogleSearchService object.
Valid arguments are :
key
String. Google API key. If none is provided then the key passed to the parent Net::Google object will be used.
phrase
String or array reference.
$pkg->key($key)
Returns a string. Returns undef if there was an error.
$pkg->phrase(@words)
Add one or more words to the phrase you want to spell-check.
If the first item in @words is empty, then any existing phrase data will be removed before the new data is added.
Returns a string. Returns undef if there was an error.
$pkg->suggest()
Fetch the spelling suggestion from the Google servers.
Returns a string. Returns undef if there was an error.
VERSION
0.14
DATE
$Date: 2003/02/22 16:48:52 $
AUTHOR
Aaron Straup Cope
SEE ALSO
LICENSE
Copyright (c) 2002-2003, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.