Skip Menu |
 

This queue is for tickets about the Text-Aspell CPAN distribution.

Report information
The Basics
Id: 3095
Status: resolved
Priority: 0/
Queue: Text-Aspell

People
Owner: Nobody in particular
Requestors: jshimada [...] netjs.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.02
Fixed in: (no value)



Subject: RFE: Text::Aspell methods to produce a list of misspelled words
First of all, thank you for authoring the module; I have enjoyed using it. This is a request for feature enhancement for a future rev of Text::Aspell current version: Text::Aspel .02 I would love it if there could be a methods that return a lists of misspelled words from either a string, filehandle or file. The methods would expose the same functionality as using the "-l" or "list" command-line option of aspell .50.3, which returns a list of misspelled words from standard input. Perhaps it could work something like this: my $speller = Text::Aspell->new(); @misspelled = $speller->list_data( $string ); # or @misspelled = $speller->list_open( "/some/file" ); # or my @misspelled = $speller->list_fh( \*FH ); Using methods like this, programmers using your module can leverage aspell's intellegence of identifying misspelled words in a paragraph or otherwise in the context of written languange. Then, programmers don't need to worry about what kind of characters to ignore, what characters should be used to delimit a word and so on. This is especially helpful if you're using HTML/SGML mode.
Download (untitled) / with headers
text/plain 856b
[guest - Tue Jul 29 21:09:53 2003]: Show quoted text
> I would love it if there could be a methods that return a lists of > misspelled words from either a string, filehandle or file. The > methods would expose the same functionality as using the "-l" or > "list" command-line option of aspell .50.3, which returns a list of > misspelled words from standard input. Perhaps it could work > something like this: > > my $speller = Text::Aspell->new(); > @misspelled = $speller->list_data( $string ); > # or > @misspelled = $speller->list_open( "/some/file" ); > # or > my @misspelled = $speller->list_fh( \*FH );
That feature is not exposed in the Aspell API. http://savannah.gnu.org/download/aspell/manual/user/6_Writing.html#SECTION00711000000000000000 So Text::Aspell would have to pipe out to the aspell binary, which is out of the scope of the module.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.