-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxchat-speak.py
1316 lines (1277 loc) · 41.4 KB
/
xchat-speak.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
__module_name__ = "xchat-speak"
__module_version__ = "1.0"
__module_description__ = "speak using festival"
import socket
import os
import time
import atexit
import signal
import xchat
import string
class festival:
"Festival object"
def __init__(self):
self.sock = self.open()
self.festival_pid = 0
def _checkresp(self):
if self.sock.recv(256)=='ER\n':
raise Exception
def set_param(self,param,value):
"Set parameter to a number or a symbol."
if type(value) is str:
self.sock.send("(Parameter.set '%s '%s)"%(param,value))
else:
self.sock.send("(Parameter.set '%s %r)"%(param,value))
self._checkresp()
def set_param_str(self,param,value):
"Set parameter to a string."
self.sock.send("(Parameter.set '%s \"%s\")"%(param,value))
self._checkresp()
def block(self,flag=True):
"Sets blocking/nonblocking mode."
if flag:
self.sock.send("(audio_mode 'sync)")
else:
self.sock.send("(audio_mode 'async)")
self._checkresp()
def set_audio_method(self,method=None,device=None):
"Set audio method and/or device."
if method is not None:
self.set_param('Audio_Method',method)
if device is not None:
self.set_param_str('Audio_Device',device)
def set_audio_command(self,command,rate=None,format=None):
"""Set audio command, and optionally rate and format.
Sets audio method to "Audio_Command"."""
self.set_audio_method("Audio_Command")
if rate is not None:
self.set_param('Audio_Required_Rate',rate)
if format is not None:
self.set_param('Audio_Required_Format',format)
self.set_param_str('Audio_Command',command)
def say(self,text):
"Speak string 'text'."
self.open()
self.sock.send('(SayText "%s")'%text)
# this makes xchat block while speaking. bad.
#self._checkresp()
def sayfile(self,filename):
"""Speak contents of file 'filename'.
Note that this is done on the server end, not the client
end, so you best pass it absolute filenames."""
self.sock.send('(tts "%s" nil)'%filename)
self._checkresp()
def close(self):
"Terminate the Festival connection."
self.sock.send('(quit)')
def open(self,host='',port=1314,nostart=False):
"""Opens a new connection to a Festival server.
Attempts to connect to a Festival server (most likely started with
'festival --server'). Will attempt to start a local server on port
1314 if one is not running and the 'nostart' flag is not set to
True. Returns a festival.festival object."""
from subprocess import STDOUT, Popen
sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
try:
sock.connect((host,port))
except socket.error:
if nostart:
raise socket.error
else:
self.festival_pid = Popen(["festival", "--server"]).pid
atexit.register(self._kill_server)
for t in xrange(20):
try:
time.sleep(.25)
sock.connect((host,port))
except socket.error:
pass
else:
break
else:
raise socket.error
self.sock = sock
return sock
def _kill_server(self):
os.kill(self.festival_pid,signal.SIGTERM)
class wordcleanser:
def __init__(self):
self.abbr = {'..' : '\,',
'^' : 'look up',
'...' : '\,',
'2nd' : 'second',
'31337' : 'eleet',
'56k' : '56 k',
':)' : 'smiles',
':-)' : 'smiles',
':-p' : 'sticks tongue out',
':>' : 'smiles',
':p' : 'sticks tongue out',
';)' : 'winks',
';-)' : 'winks',
'aamof' : 'as a matter of fact',
'ad' : 'add',
'adn' : 'any day now',
'afaik' : 'as far as i know',
'afair' : 'as far as i remember',
'afj' : 'april fool\'s joke',
'afk' : 'away from the keyboard',
'asap' : 'as soon as possible',
'at0mic_' : 'atomic',
'atm' : 'at the moment',
'awc' : 'after while, crocodile',
'awgthtgtwta?' : 'are we going to have to go through with this again?',
'ayt' : 'are you there?',
'b4' : 'before',
'b4n' : 'bye for now',
'bak' : 'back at keyboard',
'bakerw0rk' : 'baker-work',
'bbfn' : 'bye bye for now',
'bbiab' : 'be back in a bit',
'bbiaf' : 'be back in a few',
'bbialb' : 'be back in a little bit',
'bbl' : 'be back later',
'bcnu' : 'be seeing you',
'bf' : 'boy friend',
'brb' : 'be right back',
'bta' : 'but then again',
'btw' : 'by the way',
'bye?' : 'are you ready to say goodbye',
'bykt' : 'but you knew that',
'byob' : 'bring your own bottle',
'byom' : 'bring your own mac',
'cmiiw' : 'correct me if i\'m wrong',
'cu' : 'see you',
'cul' : 'see you later',
'cul8r' : 'see you later',
'cula' : 'see you later, alligator',
'cya' : 'see ya',
'd/l' : 'download',
'd00d' : 'dood',
'diku?' : 'do i know you?',
'dtrt' : 'do the right thing',
'dvd' : 'd v d',
'esad' : 'eat shit and die',
'f2f' : 'face to face',
'fcfs' : 'first come, first served',
'fe' : 'front end',
'fitb' : 'fill in the blank',
'flyaway' : 'fly away',
'foad' : 'feck off and die',
'foaf' : 'friend of a friend',
'freebsd' : 'free bsd',
'fs' : 'for sale',
'fubar' : 'fecked up beyond all repair',
'fud' : 'fear, uncertainty and doubt',
'fwiw' : 'for what it\'s worth',
'fya' : 'for your amusement',
'fyi' : 'for your information',
'ga' : 'go ahead',
'gal' : 'get a life',
'gb' : 'gigabytes',
'gd\&r' : 'grinning, ducking and running',
'gd\&wvvf' : 'grinning, ducking, and walking very, very fast',
'gf' : 'girl friend',
'giwist' : 'gee, i wish i\'d said that',
'gmta' : 'great minds think alike',
'hhoj' : 'ha ha only joking',
'hhok' : 'ha ha only kidding',
'hhos' : 'ha ha only serious',
'hmm' : 'hurrmmm',
'hoyew' : 'hanging on your every word',
'hp/ux' : 'hp ux',
'hrm' : 'herm',
'hth' : 'hope that helps!',
'i8urdog' : 'I ate your dog',
'iac' : 'in any case',
'ianal' : 'i am not a lawyer',
'iaw' : 'in accordance with',
'ic' : 'i see',
'identd' : 'ident d',
'iirc' : 'if i remember correctly',
'ijwtk' : 'i just want to know',
'ijwts' : 'i just want to say',
'ikwum' : 'i know what you mean',
'ima' : 'i might add',
'imao' : 'in my arrogant opinion',
'imco' : 'in my considered opinion',
'ime' : 'in my experience',
'imho' : 'in my humble opinion',
'imnsho' : 'in my not so humble opinion',
'imo' : 'in my opinion',
'inpo' : 'in no particular order',
'irq' : 'i r q',
'iow' : 'in other words',
'ip' : 'i p',
'ipx' : 'i p x',
'irl' : 'in real life',
'isdn' : 'i s d n',
'iss' : 'i\'m so sure',
'issygti' : 'i\'m so sure you get the idea!',
'iswim' : 'if you see what i mean',
'iwbni' : 'it would be nice if',
'iyfeg' : 'insert your favorite ethnic group',
'iyswim' : 'if you see what i mean',
'jam' : 'just a minute',
'jic' : 'just in case',
'k3nny' : 'kenny',
'kb' : 'kilobytes',
'kibo' : 'knowledge in, bullshit out',
'kwim' : 'know what i mean?',
'kyfc' : 'keep your fingers crossed',
'l8r' : 'later',
'lin0x' : 'linux',
'ljbf' : 'let\'s just be friends',
'lol' : 'laughing out loud',
'lshmba' : 'laughing so hard my belly aches',
'lthtt' : 'laughing too hard to type',
'ltns' : 'long time no see',
'mb' : 'megabytes',
'motas' : 'member of the appropriate sex',
'motd' : 'message of the day',
'motos' : 'member of the opposite sex',
'motss' : 'member of the same sex',
'msg' : 'message',
'myob' : 'mind your own business',
'n-tropy' : 'entropy',
'nah' : 'no',
'ne1' : 'anyone',
'netbsd' : 'net bsd',
'nhoh' : 'never heard of him slash her',
'np' : 'no problem',
'obo' : 'or best offer',
'obtw' : 'oh, by the way',
'oic' : 'oh, i see',
'ok' : 'o k',
'openbsd' : 'open bsd',
'otf' : 'on the floor',
'otfl' : 'on the floor laughing',
'otoh' : 'on the other hand',
'ott' : 'over the top',
'pci' : 'p c i',
'pmf' : 'pardon my french',
'pmfbi' : 'pardon me for butting in',
'pmfji' : 'pardon me for jumping in',
'pmji' : 'pardon my jumping in',
'pncah' : 'please, no cursing allowed here',
'pnpisa' : 'p n p i s a',
'po0p' : 'poop',
'ppl' : 'people',
'pstn' : 'p s t n',
'ptmm' : 'please tell me more',
'qa' : 'quality assurance',
'quazwork' : 'quaz-work',
'r u there?' : 'are you there?',
're' : 'regreet',
'redhat' : 'red hat',
'rehi' : 'hi again',
'rl' : 'real life',
'rotf' : 'rolling on the floor',
'rotfl' : 'rolling on the floor laughing',
'rotflol' : 'rolling on the floor laughing out loud',
'rsn' : 'real soon now',
'rsvp' : 'please reply',
'rtbm' : 'read the bloody manual',
'rtfaq' : 'read the frequently asked questions',
'rtfm' : 'read the fecking manual',
'rtm' : 'read the manual',
'ryfm' : 'read your friendly manual',
'scsi' : 'scuzy',
'sec' : 'wait a second',
'secs' : 'seconds',
'snafu' : 'situation normal, all fouled up',
'sol' : 'shit out of luck',
'sos' : 'help!',
'swim' : 'see what i mean?',
'tafn' : 'that\'s all for now',
'tanj' : 'there ain\'t no justice',
'tanstaafl' : 'there ain\'t no such thing as a free lunch',
'tcp' : 't c p',
'thankx' : 'thanks',
'thx' : 'thanks',
'tia' : 'thanks in advance',
'tic' : 'tongue in cheek',
'tntl' : 'trying not to laugh',
'tnx' : 'thanks',
'tnxe6' : 'thanks a million',
'tptb' : 'the powers that be',
'ttbomk' : 'to the best of my knowledge',
'ttfn' : 'ta ta for now',
'ttksf' : 'trying to keep a straight face',
'ttyl' : 'talk to you later',
'tyvm' : 'thank you very much',
'uok' : 'are you ok?',
'w/o' : 'without',
'wb' : 'welcome back',
'wdyt' : 'what do you think?',
'wibni' : 'wouldn\t it be nice if',
'willg' : 'will g',
'wrt' : 'with regard to, or with respect to',
'wtb' : 'want to buy',
'wtf' : 'what the feck',
'wtg' : 'way to go!',
'wtgp' : 'want to go private?',
'wth' : 'what the hell?',
'wygiswypf' : 'what you get is what you pay for',
'xoxoxo' : 'kisses and hugs',
'yaba' : 'yet another bloody acronym',
'yaun' : 'yet another unix nerd',
'ygti' : 'you get the idea?',
'ygwypf' : 'you get what you pay for',
'yiu' : 'yes, i understand',
'yiwgp' : 'yes, i will go private',
'ymmv' : 'your mileage may vary',
'yt' : 'are you there',
'y/t' : 'are you there',
'Ameria' : 'America',
'I\"m' : 'I\'m',
'I\;d' : 'I\'d',
'I\;ll' : 'I\'ll',}
self.spell = {'abbout' : 'about',
'abotu' : 'about',
'abouta' : 'about a',
'aboutit' : 'about it',
'aboutthe' : 'about the',
'abscence' : 'absence',
'accesories' : 'accessories',
'accidant' : 'accident',
'accomodate' : 'accommodate',
'accordingto' : 'according to',
'accross' : 'across',
'acheive' : 'achieve',
'acheived' : 'achieved',
'acheiving' : 'achieving',
'acn' : 'can',
'acommodate' : 'accommodate',
'acomodate' : 'accommodate',
'actualyl' : 'actually',
'additinal' : 'additional',
'addtional' : 'additional',
'adequit' : 'adequate',
'adequite' : 'adequate',
'adn' : 'and',
'advanage' : 'advantage',
'affraid' : 'afraid',
'afterthe' : 'after the',
'againstt he' : 'against the',
'aganist' : 'against',
'aggresive' : 'aggressive',
'agian' : 'again',
'agreemeent' : 'agreement',
'agreemeents' : 'agreements',
'agreemnet' : 'agreement',
'agreemnets' : 'agreements',
'agressive' : 'aggressive',
'ahppen' : 'happen',
'ahve' : 'have',
'allwasy' : 'always',
'allwyas' : 'always',
'almots' : 'almost',
'almsot' : 'almost',
'alomst' : 'almost',
'alot' : 'a lot',
'alraedy' : 'already',
'alreayd' : 'already',
'alreday' : 'already',
'alwasy' : 'always',
'alwats' : 'always',
'alway' : 'always',
'alwyas' : 'always',
'amde' : 'made',
'amke' : 'make',
'amkes' : 'makes',
'anbd' : 'and',
'andone' : 'and one',
'andt he' : 'and the',
'andteh' : 'and the',
'andthe' : 'and the',
'anothe' : 'another',
'anual' : 'annual',
'apparant' : 'apparent',
'apparrent' : 'apparent',
'appearence' : 'appearance',
'appeares' : 'appears',
'applicaiton' : 'application',
'applicaitons' : 'applications',
'applyed' : 'applied',
'appointiment' : 'appointment',
'approrpiate' : 'appropriate',
'approrpriate' : 'appropriate',
'aquisition' : 'acquisition',
'aquisitions' : 'acquisitions',
'aren\;t' : 'aren\'t',
'arguement' : 'argument',
'arguements' : 'arguments',
'arn\'t' : 'aren\'t',
'arond' : 'around',
'artical' : 'article',
'articel' : 'article',
'asdvertising' : 'advertising',
'askt he' : 'ask the',
'assistent' : 'assistant',
'asthe' : 'as the',
'atention' : 'attention',
'atmospher' : 'atmosphere',
'attentioin' : 'attention',
'atthe' : 'at the',
'audeince' : 'audience',
'audiance' : 'audience',
'availalbe' : 'available',
'awya' : 'away',
'aywa' : 'away',
'bakc' : 'back',
'balence' : 'balance',
'ballance' : 'balance',
'baout' : 'about',
'bcak' : 'back',
'beacuse' : 'because',
'becasue' : 'because',
'becaus' : 'because',
'becausea' : 'because a',
'becauseof' : 'because of',
'becausethe' : 'because the',
'becauseyou' : 'because you',
'becomeing' : 'becoming',
'becomming' : 'becoming',
'becuase' : 'because',
'becuse' : 'because',
'befoer' : 'before',
'beggining' : 'beginning',
'begining' : 'beginning',
'beginining' : 'beginning',
'beleiev' : 'believe',
'beleieve' : 'believe',
'beleif' : 'belief',
'beleive' : 'believe',
'beleived' : 'believed',
'beleives' : 'believes',
'benifit' : 'benefit',
'benifits' : 'benefits',
'betwen' : 'between',
'beutiful' : 'beautiful',
'boxs' : 'boxes',
'brodcast' : 'broadcast',
'butthe' : 'but the',
'bve' : 'be',
'byt he' : 'by the',
'caharcter' : 'character',
'calcullated' : 'calculated',
'calulated' : 'calculated',
'can\'t of been' : 'can\'t have been',
'can\;t' : 'can\'t',
'candidtae' : 'candidate',
'candidtaes' : 'candidates',
'catagory' : 'category',
'categiory' : 'category',
'certian' : 'certain',
'challange' : 'challenge',
'challanges' : 'challenges',
'chaneg' : 'change',
'chanegs' : 'changes',
'changable' : 'changeable',
'changeing' : 'changing',
'changng' : 'changing',
'charachter' : 'character',
'charachters' : 'characters',
'charactor' : 'character',
'charecter' : 'character',
'charector' : 'character',
'cheif' : 'chief',
'chekc' : 'check',
'chnage' : 'change',
'cieling' : 'ceiling',
'circut' : 'circuit',
'claer' : 'clear',
'claered' : 'cleared',
'claerly' : 'clearly',
'cliant' : 'client',
'cna' : 'can',
'colection' : 'collection',
'comanies' : 'companies',
'comany' : 'company',
'comapnies' : 'companies',
'comapny' : 'company',
'combintation' : 'combination',
'comited' : 'committed',
'comittee' : 'committee',
'commadn' : 'command',
'comming' : 'coming',
'commitee' : 'committee',
'committe' : 'committee',
'committment' : 'commitment',
'committments' : 'commitments',
'committy' : 'committee',
'comntain' : 'contain',
'comntains' : 'contains',
'compair' : 'compare',
'company\;s' : 'company\'s',
'compleated' : 'completed',
'compleatly' : 'completely',
'compleatness' : 'completeness',
'completly' : 'completely',
'completness' : 'completeness',
'composate' : 'composite',
'comtain' : 'contain',
'comtains' : 'contains',
'comunicate' : 'communicate',
'comunity' : 'community',
'condolances' : 'condolences',
'conected' : 'connected',
'conferance' : 'conference',
'confirmmation' : 'confirmation',
'considerit' : 'considerate',
'considerite' : 'considerate',
'consonent' : 'consonant',
'conspiricy' : 'conspiracy',
'consultent' : 'consultant',
'convertable' : 'convertible',
'cooparate' : 'cooperate',
'cooporate' : 'cooperate',
'corproation' : 'corporation',
'corproations' : 'corporations',
'corruptable' : 'corruptible',
'cotten' : 'cotton',
'coudl' : 'could',
'coudln\'t' : 'couldn\'t',
'coudn\'t' : 'couldn\'t',
'could of been' : 'could have been',
'could of had' : 'could have had',
'couldn\;t' : 'couldn\'t',
'couldnt' : 'couldn\'t',
'couldthe' : 'could the',
'cpoy' : 'copy',
'ctaegory' : 'category',
'cusotmer' : 'customer',
'cusotmers' : 'customers',
'cutsomer' : 'customer',
'cutsomers' : 'customers',
'cxan' : 'can',
'danceing' : 'dancing',
'dcument' : 'document',
'deatils' : 'details',
'decison' : 'decision',
'decisons' : 'decisions',
'defendent' : 'defendant',
'definately' : 'definitely',
'deptartment' : 'department',
'desicion' : 'decision',
'desicions' : 'decisions',
'desision' : 'decision',
'desisions' : 'decisions',
'develeoprs' : 'developers',
'devellop' : 'develop',
'develloped' : 'developed',
'develloper' : 'developer',
'devellopers' : 'developers',
'develloping' : 'developing',
'devellopment' : 'development',
'devellopments' : 'developments',
'devellops' : 'develop',
'develope' : 'develop',
'developement' : 'development',
'developements' : 'developments',
'developor' : 'developer',
'developors' : 'developers',
'develpment' : 'development',
'diaplay' : 'display',
'didint' : 'didn\'t',
'didn\;t' : 'didn\'t',
'didnot' : 'did not',
'didnt' : 'didn\'t',
'difefrent' : 'different',
'diferences' : 'differences',
'differance' : 'difference',
'differances' : 'differences',
'differant' : 'different',
'differemt' : 'different',
'differnt' : 'different',
'diffrent' : 'different',
'directer' : 'director',
'directers' : 'directors',
'directiosn' : 'direction',
'disatisfied' : 'dissatisfied',
'discoverd' : 'discovered',
'disign' : 'design',
'dispaly' : 'display',
'dissonent' : 'dissonant',
'distribusion' : 'distribution',
'divsion' : 'division',
'do\'nt' : 'don\'t',
'docuement' : 'documents',
'docuemnt' : 'document',
'documetn' : 'document',
'documnet' : 'document',
'documnets' : 'documents',
'doe snot' : 'does not',
'doens\'t' : 'doesn\'t',
'doese' : 'does',
'doesn\;t' : 'doesn\'t',
'doesnt' : 'doesn\'t',
'doign' : 'doing',
'doimg' : 'doing',
'doind' : 'doing',
'dollers' : 'dollars',
'don\'t no' : 'don\'t know',
'don\;t' : 'don\'t',
'donig' : 'doing',
'dont' : 'don\'t',
'dosn\'t' : 'doesn\'t',
'driveing' : 'driving',
'drnik' : 'drink',
'efel' : 'feel',
'effecient' : 'efficient',
'efort' : 'effort',
'eforts' : 'efforts',
'ehr' : 'her',
'eligable' : 'eligible',
'embarass' : 'embarrass',
'enought' : 'enough',
'equippment' : 'equipment',
'equivalant' : 'equivalent',
'esle' : 'else',
'especally' : 'especially',
'especialyl' : 'especially',
'espesially' : 'especially',
'excellant' : 'excellent',
'excercise' : 'exercise',
'exchagne' : 'exchange',
'exchagnes' : 'exchanges',
'excitment' : 'excitement',
'exhcange' : 'exchange',
'exhcanges' : 'exchanges',
'experiance' : 'experience',
'experienc' : 'experience',
'exprience' : 'experience',
'exprienced' : 'experienced',
'eyt' : 'yet',
'faeture' : 'feature',
'faetures' : 'features',
'familair' : 'familiar',
'familar' : 'familiar',
'familliar' : 'familiar',
'fammiliar' : 'familiar',
'feild' : 'field',
'feilds' : 'fields',
'fianlly' : 'finally',
'fidn' : 'find',
'finalyl' : 'finally',
'firends' : 'friends',
'firts' : 'first',
'follwo' : 'follow',
'follwoing' : 'following',
'fora' : 'for a',
'foriegn' : 'foreign',
'forthe' : 'for the',
'forwrd' : 'forward',
'forwrds' : 'forwards',
'foudn' : 'found',
'foward' : 'forward',
'fowards' : 'forwards',
'freind' : 'friend',
'freindly' : 'friendly',
'freinds' : 'friends',
'frmo' : 'from',
'fromt he' : 'from the',
'fromthe' : 'from the',
'furneral' : 'funeral',
'fwe' : 'few',
'garantee' : 'guarantee',
'gaurd' : 'guard',
'gemeral' : 'general',
'gerat' : 'great',
'geting' : 'getting',
'gettin' : 'getting',
'gievn' : 'given',
'giveing' : 'giving',
'gloabl' : 'global',
'goign' : 'going',
'gonig' : 'going',
'govenment' : 'government',
'goverment' : 'government',
'gruop' : 'group',
'gruops' : 'groups',
'grwo' : 'grow',
'guidlines' : 'guidelines',
'hadbeen' : 'had been',
'hadn\;t' : 'hadn\'t',
'haev' : 'have',
'hapen' : 'happen',
'hapened' : 'happened',
'hapening' : 'happening',
'hapens' : 'happens',
'happend' : 'happened',
'hasbeen' : 'has been',
'hasn\;t' : 'hasn\'t',
'hasnt' : 'hasn\'t',
'havebeen' : 'have been',
'haveing' : 'having',
'haven\;t' : 'haven\'t',
'hda' : 'had',
'he\;ll' : 'he\'ll',
'hearign' : 'hearing',
'helpfull' : 'helpful',
'herat' : 'heart',
'here\;s' : 'here\'s',
'hesaid' : 'he said',
'hewas' : 'he was',
'hge' : 'he',
'hismelf' : 'himself',
'hlep' : 'help',
'hsa' : 'has',
'hsi' : 'his',
'hte' : 'the',
'htere' : 'there',
'htese' : 'these',
'htey' : 'they',
'hting' : 'thing',
'htink' : 'think',
'htis' : 'this',
'hvae' : 'have',
'hvaing' : 'having',
'hwich' : 'which',
'i snot' : 'is not',
'idae' : 'idea',
'idaes' : 'ideas',
'identofy' : 'identify',
'ihs' : 'his',
'iits the' : 'it\'s the',
'imediate' : 'immediate',
'imediatly' : 'immediately',
'immediatly' : 'immediately',
'importent' : 'important',
'importnat' : 'important',
'impossable' : 'impossible',
'improvemnt' : 'improvement',
'improvment' : 'improvement',
'includ' : 'include',
'indecate' : 'indicate',
'indenpendence' : 'independence',
'indenpendent' : 'independent',
'indepedent' : 'independent',
'independance' : 'independence',
'independant' : 'independent',
'influance' : 'influence',
'infomation' : 'information',
'informatoin' : 'information',
'inital' : 'initial',
'instaleld' : 'installed',
'insted' : 'instead',
'insurence' : 'insurance',
'int he' : 'in the',
'inteh' : 'in the',
'interum' : 'interim',
'inthe' : 'in the',
'inwhich' : 'in which',
'isn\;t' : 'isn\'t',
'isthe' : 'is the',
'it snot' : 'it\'s not',
'it\' snot' : 'it\'s not',
'it\;ll' : 'it\'ll',
'it\;s' : 'it\'s',
'itis' : 'it is',
'ititial' : 'initial',
'itnerest' : 'interest',
'itnerested' : 'interested',
'itneresting' : 'interesting',
'itnerests' : 'interests',
'its a' : 'it\'s a',
'its the' : 'it\'s the',
'itwas' : 'it was',
'iwll' : 'will',
'iwth' : 'with',
'jsut' : 'just',
'jugment' : 'judgment',
'knowldge' : 'knowledge',
'knowlege' : 'knowledge',
'knwo' : 'know',
'knwon' : 'known',
'knwos' : 'knows',
'konw' : 'know',
'konwn' : 'known',
'konws' : 'knows',
'labratory' : 'laboratory',
'lastyear' : 'last year',
'learnign' : 'learning',
'lenght' : 'length',
'let\'s him' : 'lets him',
'let\'s it' : 'lets it',
'let\;s' : 'let\'s',
'levle' : 'level',
'libary' : 'library',
'librarry' : 'library',
'librery' : 'library',
'liek' : 'like',
'liekd' : 'liked',
'lieutenent' : 'lieutenant',
'liev' : 'live',
'likly' : 'likely',
'lisense' : 'license',
'littel' : 'little',
'litttle' : 'little',
'liuke' : 'like',
'liveing' : 'living',
'loev' : 'love',
'lonly' : 'lonely',
'lookign' : 'looking',
'maintenence' : 'maintenance',
'makeing' : 'making',
'managment' : 'management',
'mantain' : 'maintain',
'marraige' : 'marriage',
'may of been' : 'may have been',
'may of had' : 'may have had',
'memeber' : 'member',
'merchent' : 'merchant',
'mesage' : 'message',
'mesages' : 'messages',
'might of been' : 'might have been',
'might of had' : 'might have had',
'mispell' : 'misspell',
'mispelling' : 'misspelling',
'mispellings' : 'misspellings',
'mkae' : 'make',
'mkaes' : 'makes',
'mkaing' : 'making',
'moeny' : 'money',
'morgage' : 'mortgage',
'mroe' : 'more',
'msot' : 'most',
'must of been' : 'must have been',
'must of had' : 'must have had',
'mysefl' : 'myself',
'myu' : 'my',
'necassarily' : 'necessarily',
'necassary' : 'necessary',
'neccessarily' : 'necessarily',
'neccessary' : 'necessary',
'necesarily' : 'necessarily',
'necesary' : 'necessary',
'negotiaing' : 'negotiating',
'nkow' : 'know',
'nothign' : 'nothing',
'nver' : 'never',
'nwe' : 'new',
'nwo' : 'now',
'obediant' : 'obedient',
'ocasion' : 'occasion',
'occassion' : 'occasion',
'occured' : 'occurred',
'occurence' : 'occurrence',
'occurrance' : 'occurrence',
'ocur' : 'occur',
'oeprator' : 'operator',
'ofits' : 'of its',
'oft he' : 'of the',
'ofthe' : 'of the',
'oging' : 'going',
'ohter' : 'other',
'omre' : 'more',
'oneof' : 'one of',
'onepoint' : 'one point',
'ont he' : 'on the',
'onthe' : 'on the',
'onyl' : 'only',
'oppasite' : 'opposite',
'opperation' : 'operation',
'oppertunity' : 'opportunity',
'opposate' : 'opposite',
'opposible' : 'opposable',
'opposit' : 'opposite',
'oppotunities' : 'opportunities',
'oppotunity' : 'opportunity',
'orginization' : 'organization',
'orginized' : 'organized',
'otehr' : 'other',
'otu' : 'out',
'outof' : 'out of',
'overthe' : 'over the',
'owrk' : 'work',
'owuld' : 'would',
'oxident' : 'oxidant',
'papaer' : 'paper',
'parliment' : 'parliament',
'partof' : 'part of',
'paymetn' : 'payment',
'paymetns' : 'payments',
'pciture' : 'picture',
'peice' : 'piece',
'peices' : 'pieces',
'peolpe' : 'people',
'peopel' : 'people',
'percentof' : 'percent of',
'percentto' : 'percent to',
'performence' : 'performance',
'perhasp' : 'perhaps',
'perhpas' : 'perhaps',
'permanant' : 'permanent',
'perminent' : 'permanent',
'personalyl' : 'personally',
'pleasent' : 'pleasant',
'poeple' : 'people',
'porblem' : 'problem',
'porblems' : 'problems',
'porvide' : 'provide',
'possable' : 'possible',
'postition' : 'position',
'potentialy' : 'potentially',
'pregnent' : 'pregnant',
'presance' : 'presence',
'probelm' : 'problem',
'probelms' : 'problems',
'prominant' : 'prominent',
'psoition' : 'position',
'ptogress' : 'progress',
'puting' : 'putting',
'pwoer' : 'power',
'quater' : 'quarter',
'quaters' : 'quarters',
'quesion' : 'question',
'quesions' : 'questions',
'questioms' : 'questions',
'questiosn' : 'questions',
'questoin' : 'question',
'quetion' : 'question',
'quetions' : 'questions',
'realyl' : 'really',
'reccomend' : 'recommend',
'reccommend' : 'recommend',
'receieve' : 'receive',
'recieve' : 'receive',
'recieved' : 'received',
'recieving' : 'receiving',
'recomend' : 'recommend',
'recomendation' : 'recommendation',
'recomendations' : 'recommendations',
'recomended' : 'recommended',
'reconize' : 'recognize',
'recrod' : 'record',
'religous' : 'religious',
'reluctent' : 'reluctant',
'remeber' : 'remember',
'reommend' : 'recommend',
'representativs' : 'representatives',
'representives' : 'representatives',
'represetned' : 'represented',
'represnt' : 'represent',
'reserach' : 'research',
'resollution' : 'resolution',
'resorces' : 'resources',
'respomd' : 'respond',
'respomse' : 'response',
'responce' : 'response',
'responsability' : 'responsibility',
'responsable' : 'responsible',
'responsibile' : 'responsible',
'responsiblity' : 'responsibility',
'restaraunt' : 'restaurant',
'restuarant' : 'restaurant',
'reult' : 'result',
'reveiw' : 'review',
'reveiwing' : 'reviewing',
'rumers' : 'rumors',
'rwite' : 'write',