
Lingua::MSWordSpell - Word spellchecker

use Lingua::MSWordSpell;
my $spchecker = new Lingua::MSWordSpell;
my @errors = $spchecker->spellcheck($text);

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.

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.

Simon Flack <cpan _at_ bbc _dot_ co _dot_ uk>


(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/)