The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.1.2

DATE

May 01, 2002

AUTHOR

Aaron Straup Cope

SEE ALSO

Net::Google

LICENSE

Copyright (c) 2002, Aaron Straup Cope. All Rights Reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.