Spellunker(3)

πŸ“¦
version 0.4.0 Β· 4 versions
, in epel 9

πŸ’… 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_fh and adds them to the on-memory dictionary. (fh = filehandle bestie, she takes both, she's flexible like that πŸ’…)
  • $spellunker->add_stopwords(@stopwords) β€” Add some @stopwords to 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