# File lib/snippits.rb, line 10
        def initialize(dir = File.expand_path('~/.snippits/'))

                # Define where to look for snippit files
                @dir = dir

                # Load ERB
                begin
                        require 'rubygems'
                        require 'erb'
                rescue LoadError
                        puts "This script requires Ruby Gems and the ERB gem installed"
                end


                begin
                        # Try loading RAspell
                        require 'raspell'

                        def self.suggest(word)
                                Aspell.new("en_US").suggest(word)
                        end

                rescue LoadError
                        # Otherwise, define stub method, print message

                        def self.suggest(word)
                                [word]
                        end

                        STDERR.puts "Spell checking disabled, install RAspell to enable"
                end
        end