NAME
WebService::GoogleHack::Spelling - Retrieves spelling suggestion given a string.
SYNOPSIS
use WebService::GoogleHack::Spelling;
#create an object of type spelling
my $spelling = WebService::GoogleHack::Spelling->new();
#make sure to initialize the correct wsdl file
$spelling->init("key","wsdl file");
$results = $spelling->spellingSuggestion($searchString);
#$results will be a string containing the suggestion (If there is a suggestion given by Google, otherwise it would be a null variable).
#The suggested "correction" string can also be accessed by,
#$spelling->{'correction'};
DESCRIPTION
This module interacts with Google to retrieve a spelling suggestion given a string. It is used by the WebService::GoogleHack driver module.
PACKAGE METHODS
__METHOD__->new()
Purpose: This function creates an object of type Spelling and returns a blessed reference.
__METHOD__->init(Key,wsdl_location)
Purpose: This this function can used to inititalize the member variables.
Valid arguments are :
Key
string. key to the google-api
wsdl_location
string. This the wsdl file name
__METHOD__->spellingSuggestion(searchString)
Purpose: This is function is used to retrieve a spelling suggestion from Google
Valid arguments are :
searchString
string. Need to pass the search string, which can be a single word
Returns: Returns suggested spelling if there is one, otherwise returns "No Spelling Suggested".
AUTHOR
Pratheepan Raveendranathan, <rave0029@d.umn.edu>
Ted Pedersen, <tpederse@d.umn.edu>
BUGS
SEE ALSO
WebService::GoogleHack home page - http://google-hack.sourceforge.net
Pratheepan Raveendranathan - http://www.d.umn.edu/~rave0029/research
Ted Pedersen - www.d.umn.edu./~tpederse
Google-Hack Maling List <google-hack-users@lists.sourceforge.net>
COPYRIGHT AND LICENSE
Copyright (c) 2005 by Pratheepan Raveendranathan, Ted Pedersen
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to
The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.