mendicant-university/mendibot — pull request #24 by gjp (2012-01-27 04:47:23+00:00)
Title: Add spell plugin bridged to hunspell-ffi

Criticism welcome as always :)

NEW_ROOMS = nil in default_environment.rb is off-topic but necessary to start the bot.

HUNSPELL_DICT = '/usr/share/hunspell/en_US' - if not this, we'll need a comment explaining that anyone forking this must find the path of the .aff and .dic files in their language of choice. The default search path for the Ubuntu version of Hunspell looks for six different versions of OpenOffice, so, yeah.

I didn't limit the number of suggestion results to 10 as you're unlikely to exceed that; I'd add a limit if you only wanted the top 3.