Artificial Intelligence JavaScript Object Notation

  • 10 Replies
  • 1307 Views
*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1082
    • 8pla.net
Artificial Intelligence JavaScript Object Notation
« on: March 14, 2018, 01:18:18 am »
I just created Artificial Intelligence JavaScript Object Notation, which implements a JSON dialect for creating natural language software agents.

Demo Page:

http://www.chatbot.ml/chatbot

Source Code:

http://chatbot.ml/chatbot/json.js

Format:

var JSON = [[
"HELLO|HI|HEY|GREETINGS",
"Greetings",
"Hello there.",
"Hi you.",
]];


« Edit Notes: Fixed broken links from domain name aihax.com to new domain chatbot.ml
« Last Edit: November 16, 2018, 04:45:28 am by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

infurl

  • Trusty Member
  • ********
  • Replicant
  • *
  • 644
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #1 on: March 14, 2018, 01:36:16 am »
That's actually a great idea, but why a "dialect"? Isn't that still going to have compatibility problems? I was expecting to see some labels saying what the different elements are instead of having to guess. Brevity for it's own sake is a big obstacle to productivity. Have you got some converted non-trivial AIML examples to demonstrate the idea in more depth? Criticisms aside, I do think it's a great idea.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Global Moderator
  • *********************
  • Deep Thought
  • *
  • 5164
Re: Artificial Intelligence JavaScript Object Notation
« Reply #2 on: March 14, 2018, 01:06:27 pm »
Eliza
In the world of AI, it's the thought that counts!

*

infurl

  • Trusty Member
  • ********
  • Replicant
  • *
  • 644
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #3 on: March 14, 2018, 10:17:44 pm »
Eliza

I was thinking Alice actually. :)

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Global Moderator
  • *********************
  • Deep Thought
  • *
  • 5164
Re: Artificial Intelligence JavaScript Object Notation
« Reply #4 on: March 15, 2018, 05:47:39 pm »
OK, but if you examine the way in which it tried to elicit responses it seemed very reminiscent to me of that ever-so-helpful Rogerian therapist mentality that was first exhibited by the first Eliza (Elisa) program back in the hey day! Yeah...I'm old...so what! Haha!!

I believe Alice (the chatbot) came later, much later than Charles Dodgson's (Lewis Carroll) Alice in Wonderland, which in itself, was a far better entertainer of the mind, IMHO. ;)
In the world of AI, it's the thought that counts!

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1082
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #5 on: March 15, 2018, 10:29:11 pm »
@infurl:

That's actually a great idea, but why a "dialect"?

I meant a dialect of JSON.

Isn't that still going to have compatibility problems?

Yes.

I was expecting to see some labels saying what the different elements are instead of having to guess. Brevity for it's own sake is a big obstacle to productivity.

Instead of labels which are associative, it is indexed numerically.  Whenever, the index is zero, that identifies it as matching the stimulus.  Or, as a response list, otherwise.
 

Have you got some converted non-trivial AIML examples to demonstrate the idea in more depth?

No. I do have some new ideas related to using JSON for A.I. though.

Criticisms aside, I do think it's a great idea.

A brand new implementation being compared to long established implementations is a great compliment.
My Very Enormous Monster Just Stopped Using Nine

*

infurl

  • Trusty Member
  • ********
  • Replicant
  • *
  • 644
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #6 on: March 15, 2018, 10:36:19 pm »
Instead of labels which are associative, it is indexed numerically.  Whenever, the index is zero, that identifies it as matching the stimulus.  Or, as a response list, otherwise.

Yes I got that just by looking at it, so it does work as it is. Also the casiness of the text was a clue. The problem is that simple things rarely stay simple and when you want to add more features, the syntax might become harder to decipher. Incidentally I can't help making comparisons to ElfScript as well. Looking forward to seeing where both these projects go.

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1082
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #7 on: March 16, 2018, 11:51:23 pm »
Here is an update to the implementation...

BEFORE:

"YOU *" matched stimulus "You understand" but not "You" by itself, since "*" had to match on something being there.

AFTER:

"YOU *" now matches stimulus "You understand" and "You" by itself, because "*" matches something or nothing there.

Quote
You

Why do you care whether I?


You understand

Why do you care whether I understand?


My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1082
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #8 on: March 17, 2018, 12:18:05 am »
The problem is that simple things rarely stay simple and when you want to add more features, the syntax might become harder to decipher.

That is true.  In a way, keeping things simple, can be its own challenge.  And, thank you for your valuable comments.  I think the JSON developer community may refer to labels as something they consider important called, "readability".
My Very Enormous Monster Just Stopped Using Nine

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6493
  • Mostly Harmless
Re: Artificial Intelligence JavaScript Object Notation
« Reply #9 on: March 17, 2018, 12:38:14 am »
I'm impressed that you did so much with so little code  8)

But yes, the simple becoming complex is something I very much came across with ElfScript. As a beta tester Art is very good at asking questions and I tried to be equally good at solving things with existing methods.  ;D

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1082
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #10 on: March 19, 2018, 11:07:49 pm »
I managed to make it even easier, with less code.

While this original A.I. JSON project continues. 

I thought an easier plain text version deserves a new thread of its own.

Reference: http://aidreams.co.uk/forum/index.php?topic=12963
My Very Enormous Monster Just Stopped Using Nine

 


Users Online

59 Guests, 2 Users
Users active in past 15 minutes:
LOCKSUIT, ivan.moony
[Trusty Member]

Most Online Today: 95. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles