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:
$text
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.
spellcheck()
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/)
To install Lingua::MSWordSpell, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::MSWordSpell
CPAN shell
perl -MCPAN -e shell install Lingua::MSWordSpell
For more information on module installation, please visit the detailed CPAN module installation guide.