Spellunker - Pure perl spelling checker implementation
Spellunker is pure perl spelling checker implementation. You can use this spelling checker as a library.
And this distribution provides spellunker and spellunker-pod command.
If you want to use this spelling checker in test script, you can use Test::Spellunker.
-
my $spellunker = Spellunker->new();
Create new instance.
-
$spellunker->load_dictionary($filename_or_fh)
Loads stopwords from
$filename_or_fh
and adds them to the on-memory dictionary. -
$spellunker->add_stopwords(@stopwords)
Add some
@stopwords
to the on memory dictionary. -
$spellunker->check_word($word);
Check the word looks good or not.
-
@bad_words = $spellunker->check_line($line)
Check the text and returns bad word list.
You can put your personal dictionary at $HOME/.spellunker.en
.
In some case, Spellunker does not ignore the perl code. You need to wrap it by
.
You can send me pull-request on github
Copyright (C) tokuhirom
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokuhirom tokuhirom@gmail.com