1 /***************************************
5 * FILE: spell_checker/INSTALL
6 * AUTHOR: ELIZABETH PERREAU
8 * DETAILS: spell checker INSTALL instructions
9 ***************************************/
14 ----------------------------------------------------------------------------------------------
15 - run the following sql on your bot database
16 ----------------------------------------------------------------------------------------------
17 CREATE TABLE IF NOT EXISTS `spellcheck` (
18 `id` int(11) NOT NULL auto_increment,
19 `missspelling` varchar(100) NOT NULL,
20 `correction` varchar(100) NOT NULL,
21 `bot_exclude` varchar(255) NOT NULL,
25 INSERT INTO `spellcheck` (`id`, `missspelling`, `correction`, `bot_exclude`) VALUES
26 (1, 'wot', 'what', ''),
27 (2, 'wots', 'what is', '');
31 ----------------------------------------------------------------------------------------------
32 - put the spell_checker folder in the bot chatbot/addons/ folder
36 ----------------------------------------------------------------------------------------------
37 - add the following lines to load_addons.php
39 //load the word censor functions
40 include("spell_checker/spell_checker.php");
44 ----------------------------------------------------------------------------------------------
45 - add the following line to the function start_response_useraddon() (in load_addons.php)
47 //run the spell checker before sending into the system
48 run_spell_checker($convoArr);