GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::GOOGLE::SPELLING (3)

.ds Aq ’

NAME

Net::Google::Spelling - simple OOP-ish interface to the Google SOAP API for spelling suggestions

CONTENTS

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

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

Valid arguments are :
o <B>keyB>

string.A Google API key.

If none is provided then the key passed to the parent Net::Google object will be used.

o <B>phraseB>

string or array reference.

o <B>http_proxyB>

url. A URL for proxy-ing HTTP requests.

o <B>debugB>

Valid options are:
o boolean

If true prints debugging information returned by SOAP::Lite to STDERR

o coderef.

Your own subroutine for munging the debugging information returned by SOAP::Lite.

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

CW$obj->key($string)

Get/set the Google API key for this object.

CW$obj->http_proxy($url)

Get/set the HTTP proxy for this object.

Returns a string.

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

CW$obj->suggest()

Fetch the spelling suggestion from the Google servers.

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

CW$obj->queries_exhausted()

Returns true or false depending on whether or not the current in-memory <B>sessionB> has exhausted the Google API 1000 query limit.

VERSION

1.0

DATE

$Date: 2006/01/12 03:37:31 $

AUTHOR

Aaron Straup Cope

SEE ALSO

Net::Google

LICENSE

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

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::GOOGLE::SPELLING (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.