Spellunker(3)
π Spellunker(3) β the perl spelling checker page, but make it a group chat
okay so bestie, welcome to Spellunker β Pure perl spelling checker implementation. Yes, that's the whole NAME line, and yes, she's pure perl. No cap. π¦
β¨ DESCRIPTION β¨
Spellunker is a pure perl spelling checker implementation. The big slay here is that you can use this spelling checker as a library β like, drop her right into your own code and she just works. π
And this distribution provides the spellunker and spellunker-pod commands. Two commands, both iconic, both doing their thing. π
If you wanna use this spelling checker inside a test script, you can use Test::Spellunker. That's literally what it's for. iykyk. β
πΈ METHODS πΈ
my $spellunker = Spellunker->new();β Create new instance. That's it, that's the vibe. Fresh spellunker, fresh start, main character energy. β¨$spellunker->load_dictionary($filename_or_fh)β Loads stopwords from$filename_or_fhand adds them to the on-memory dictionary. (fh = filehandle bestie, she takes both, she's flexible like that π )$spellunker->add_stopwords(@stopwords)β Add some@stopwordsto the on memory dictionary. Just yeet those words in there. π«Ά$spellunker->clear_stopwords();β Crear the information of stop words. (That's the original wording, typo and all β clear out all the stop word info, she's starting over π)$spellunker->check_word($word);β Check the word looks good or not. One word, one vibe check. π₯@bad_words = $spellunker->check_line($line)β Check the text and returns bad word list. She returns a list of the bad words, so you get the whole receipts, not just a yes/no. π
π§ HOW DO I USE CUSTOM DICTIONARY? π§
You can put your personal dictionary at "$HOME/.spellunker.en". That's it. That's the path. Put your lil custom words there and she'll respect them. π
π WHY DOES SPELLUNKER NOT IGNORE PERL CODE? π
In some case, Spellunker does not ignore the perl code. So like, sometimes she's gonna look at your actual perl code and go "hmm, that's a word?" π
The fix: you need to wrap it by C< >. Wrap the code, save the vibe check.
π CONTRIBUTION π
You can send me pull-request on github. Go off, contribute, be the icon you wish to see in the world. π
π LICENSE π
Copyright (C) tokuhirom
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Read that again β free software, same terms as Perl itself, fr fr. π
π AUTHOR π
tokuhirom <tokuhirom@gmail.com>
and that's the page bestie!! π«Ά this was perl v5.32.1, dated 2019-09-22, brought to you by User Contributed Perl Documentation β mwah, go spell some words πβ¨
π¦ where this page comes from
- epel 9: perl-Spellunker 0.4.0-16.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms