Spell checking in irssi

  2008-11-06


irssi is the client of the future and the only real option if you use IRC.

However, one feature I always wished it had was spell-checking. Turns out with about 30 seconds worth of work (including googling), you can have it!

First on a Debian (probably works on Ubuntu too) system, install Lingua::Ispell and Ispell using the following commands:

$ sudo apt-get install ispell liblingua-ispell-perl

It should pull in a number of other packages including a dictionary. I actually received an error as well, but it seems safe to ignore:

`irssi is the client of the future and the only real option if you use IRC.

However, one feature I always wished it had was spell-checking. Turns out with about 30 seconds worth of work (including googling), you can have it!

First on a Debian (probably works on Ubuntu too) system, install Lingua::Ispell and Ispell using the following commands:

$ sudo apt-get install ispell liblingua-ispell-perl

It should pull in a number of other packages including a dictionary. I actually received an error as well, but it seems safe to ignore:

`

Next up download the irssi spell script:

$ cd ~/.irssi/scripts/
$ wget http://scripts.irssi.org/scripts/spell.pl
$ # Reattach to your irssi screen session now...
$ screen -rAad irssi

Finally…

  1. Load the script into irssi
  2. bind Alt-s as the shortcut to spell-check your current line*
  3. tell the script to give you more than the default of 1 guess

…by running the following commands in irssi:

/script load spell.pl
/bind meta-s /_spellcheck
/set spell_max_guesses 3

And you’re done! Now when you press Alt-s, irssi spell checks your current line and gives you spelling suggestions in the current window.

* I highlighted this part because the irssi scripts page doesn’t mention it. You have to view the documentation at the top of the script file to find out that you have to manually bind the shortcut key.