NAME

Lingua::MSWordSpell - Word spellchecker

SYNOPSIS

use Lingua::MSWordSpell;
my $spchecker = new Lingua::MSWordSpell;

my @errors = $spchecker->spellcheck($text);

DESCRIPTION

This is a rough and ready replacement for Lingua::Ispell that uses Microsoft Word's Spellchecker over OLE automation. It requires Microsoft Word 9 or higher.

METHODS

spellcheck($text)

This method uses the Microsoft Word spellchecker to check each word in the supplied $text string. It will return a hash reference for each misspelled word:

term       # The mis-spelled word
offset     # The offset of the first character of 'term' from the start of
           # the string, where the first char is at offset '1'
guesses    # List of alternative spelling suggestions

If there are no misspelled words in the string, spellcheck() will return an empty list.

AUTHOR

Simon Flack <cpan _at_ bbc _dot_ co _dot_ uk>

SEE ALSO

Interfaces to online spelling services (google):

Net::Google::Spelling
WebService::GoogleHack::Spelling

Interfaces to local spell checking binaries and libraries (aspell, pspell, ispell):

Lingua::Ispell
Text::Pspell
Text::Aspell
Text::SpellCheck

COPYRIGHT

(c) BBC 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL.

See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt

'Microsoft Word' and 'Microsoft' are trademarks owned by Microsoft (http://microsoft.com/)