/***************************************
* www.program-o.com
* PROGRAM O 
* Version: 2.6.4
* FILE: spell_checker/INSTALL
* AUTHOR: ELIZABETH PERREAU
* DATE: MAY 17TH 2014
* DETAILS: spell checker INSTALL instructions
***************************************/



STEP 1:
----------------------------------------------------------------------------------------------
- run the following sql on your bot database
----------------------------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `spellcheck` (
  `id` int(11) NOT NULL auto_increment,
  `missspelling` varchar(100) NOT NULL,
  `correction` varchar(100) NOT NULL,
  `bot_exclude` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
);

INSERT INTO `spellcheck` (`id`, `missspelling`, `correction`, `bot_exclude`) VALUES
(1, 'wot', 'what', ''),
(2, 'wots', 'what is', '');


STEP 2:
----------------------------------------------------------------------------------------------
- put the spell_checker folder in the bot chatbot/addons/ folder


STEP 3:
----------------------------------------------------------------------------------------------
- add the following lines to load_addons.php

//load the word censor functions
include("spell_checker/spell_checker.php");


STEP 4:
----------------------------------------------------------------------------------------------
- add the following line to the function start_response_useraddon() (in load_addons.php)

//run the spell checker before sending into the system
run_spell_checker($convoArr);






