Padre::Plugin::SpellCheck::Engine - Spell check engine for the plugin


Padre-Plugin-SpellCheck documentation  | view source Contained in the Padre-Plugin-SpellCheck distribution.

Index


NAME

Top

Padre::Plugin::SpellCheck::Engine - Spell check engine for the plugin

VERSION

Top

version 1.21

PUBLIC METHODS

Top

Constructor

my $engine = PPS::Engine->new;

Create a new engine to be used later on.

Instance methods

* my ($word, $pos) = $engine->check( $text );

Spell check $text (according to current speller), and return the first error encountered (undef if no spelling mistake). An error is reported as the faulty $word, as well as the $pos of the word in the text (position of the start of the faulty word).

* $engine->ignore( $word );

Tell engine to ignore $word for rest of the spell check.

* my @dictionaries = $engine->dictionaries;

Return a (reduced) list of dictionaries installed with aspell. The names returned are the dictionary locale names (eg en_US). Note that only plain locales are reported, the variations coming with aspell are stripped.

* my @suggestions = $engine->suggestions( $word );

Return suggestions for $word.

SEE ALSO

Top

For all related information (bug reporting, source code repository, etc.), refer to Padre::Plugin::SpellCheck.

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


Padre-Plugin-SpellCheck documentation  | view source Contained in the Padre-Plugin-SpellCheck distribution.