Aaron Straup Cope > Net-Google-0.62 > Net::Google::Spelling

Download:
Net-Google-0.62.tar.gz

Dependencies

Annotate this POD (1)

CPAN RT

New  6
Open  1
Stalled  1
View Bugs
Report a bug
Module Version: 0.3   Source   Latest Release: Net-Google-1.0.1

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(\%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.

PACKAGE METHODS ^

$pkg = __PACKAGE__->new(\%args)

Valid arguments are :

The object constructor in Net::Google 0.53, and earlier, expected a GoogleSearchService object as its first argument followed by a hash reference of argument. Versions 0.6 and higher are backwards compatible.

Returns an object. Woot!

OBJECT METHODS ^

$obj->key($string)

Get/set the Google API key for this object.

$obj->http_proxy($url)

Get/set the HTTP proxy for this object.

Returns a string.

$obj->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.

$obj->suggest()

Fetch the spelling suggestion from the Google servers.

Returns a string. Returns undef if there was an error.

VERSION ^

0.3

DATE ^

$Date: 2004/02/10 04:18:55 $

AUTHOR ^

Aaron Straup Cope

SEE ALSO ^

Net::Google

LICENSE ^

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

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