Padre::Plugin::SpellCheck::Engine(3pm)

Padre::Plugin::SpellCheck::Engine3pm

Check spelling in padre, the perl ide.

Version

version: 1.32

Public methods

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->set_ignore_word( $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 (e.g. "en_US"). Note that only plain locales are reported, the variations coming with Aspell are stripped.

•

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

Return suggestions for $word.

Bugs and limitations

Text::Hunspell hard coded for /usr/share/hunspell/

Dependencies

Padre, Class::XSAccessor and either or ( Text::Hunspell or Text::Aspell )

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8