I decided to learn a bit Javascript.
So I ported the Katoptron - infact, I rebuilt it from ground up, I did not even look at the original BASIC source. It has everything needed for a general artifical intelligence (AGI): it can "reslide" information in order to "think about it more carefully", it matches by similarity and fragmentation sets, it has instincts in order to connect input and output, and it "learns" - do not let the knowledge base fool you, it is large - but it is not static; it is being updated dynamically during the conversation. If you don't like it, you may comment it out or delete it - but hardly is there anything more unnerving to use than a bot without any knowledge.
The result are the below HTML pages. All code is in each. You can download one and open the chatbot in any of the more common browsers.
katoptron.html is the "full" version - katoptr.html is the "simpler" version where resliding has been turned off and the knowledge update is simpler. It is better traceable though, and it shows that the Katoptron is able to learn entirely new things. If you look at the image below, you will see how katoptr.html has been used to learn the sequence:
AAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCC DDDDDDDDDDDDDDDDDDDD EEEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFFF GGGGGGGGGGGGGGGGGGGG HHHHHHHHHHHHHHHHHHHH IIIIIIIIIIIIIIIIIIII JJJJJJJJJJJJJJJJJJJJ
KKKKKKKKKKKKKKKKKKKK LLLLLLLLLLLLLLLLLLLL MMMMMMMMMMMMMMMMMMMM NNNNNNNNNNNNNNNNNNNN OOOOOOOOOOOOOOOOOOOO
AAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCC DDDDDDDDDDDDDDDDDDDD EEEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFFF GGGGGGGGGGGGGGGGGGGG HHHHHHHHHHHHHHHHHHHH IIIIIIIIIIIIIIIIIIII JJJJJJJJJJJJJJJJJJJJ
KKKKKKKKKKKKKKKKKKKK LLLLLLLLLLLLLLLLLLLL MMMMMMMMMMMMMMMMMMMM NNNNNNNNNNNNNNNNNNNN OOOOOOOOOOOOOOOOOOOO
...
Of course, it is useable for "normal" conversations, too. (See the second picture below.)
(Due to the limitations of Google Sites, it is unfortunately impossible to host it here "live".)
All your data remains local. The "interpreter" which "runs it" is purely your browser. License is the GNU GPL v3 or later.
- Nino Ivanov, 19th August 2016