added some development tools
[windows-sources.git] / developer / Samples / Bot / chatbot / addons / spell_checker / INSTALL
blob33d63e165415012c3b804bb2a83ae663d1267e20
1 /***************************************
2 * www.program-o.com
3 * PROGRAM O 
4 * Version: 2.5.3
5 * FILE: spell_checker/INSTALL
6 * AUTHOR: ELIZABETH PERREAU
7 * DATE: MAY 17TH 2014
8 * DETAILS: spell checker INSTALL instructions
9 ***************************************/
13 STEP 1:
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,
22   PRIMARY KEY  (`id`)
25 INSERT INTO `spellcheck` (`id`, `missspelling`, `correction`, `bot_exclude`) VALUES
26 (1, 'wot', 'what', ''),
27 (2, 'wots', 'what is', '');
30 STEP 2:
31 ----------------------------------------------------------------------------------------------
32 - put the spell_checker folder in the bot chatbot/addons/ folder
35 STEP 3:
36 ----------------------------------------------------------------------------------------------
37 - add the following lines to load_addons.php
39 //load the word censor functions
40 include("spell_checker/spell_checker.php");
43 STEP 4:
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);