Posted on 2008-02-01 11:39:18-08 by keerthi
Why the Aspell is not giving the suggestions for a word
Hi everyone, Text-Aspell has been installed in my sys but when I tried to find the suggestions for a word it is not finding any suggestions for that word. It is even not able to check whether the given word is found in the dictionary or not. I have used the following code for checking:
#!/usr/bin/perl use Text::Aspell; $word = "habbit"; my $speller = Text::Aspell->new; print $speller->check( $word ) ? "$word found\n" : "$word not found!\n"; my @suggest = $speller->suggest($word); print "SUGGESTIONS FOUND are: @suggest\n"; for $speller->check($word) it is returning as "habbit not found".
Even though the Text-Aspell module is installed I am unable to find the reason why it is not giving the results. And also I have tried to find the dictionaries that might be installed along with Text-Aspell using
@dictionaries = $speller->list_dictionaries;
But I couldn't find any dictionaries. Please anyone help me out in this as soon as possible. Thanks in Advance, keerthi
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.