silentrob / superscript-editor

NOT MAINTAINED - A Editor for authoring chatbots with SuperScript
MIT License
27 stars 16 forks source link

Search Facts #5

Open silentrob opened 9 years ago

Rajan commented 9 years ago

Does this aim to call Conceptnet/wordnet and generate responses? If you've a plan, I'd like to look into this.

silentrob commented 9 years ago

No facts are truple information that aim in providing common knoledge to your bot. It can be also used in generating part of a reply by replacing a word in the reply.

+ I like ~sport
-  Really? I like ~sport.

In this example ~sport is expanded in both the gambit and reply to resolved to A SPORT defined either in wordnet or the fact DB. (sfacts)

Conceptnet on the other hand is used differently and can provided actual replies. This lays in plugins at the moment. See https://github.com/silentrob/superscript/blob/master/plugins/reason.js#L64-L74 I used it to address questions like "What is a X?" and "What is X used for?", "Where would I put a X?". It can also be used to resolve information too, like "What color is the sky?"

Rajan commented 9 years ago

I just tested this by creating a gambit. This returned various sports:

But this one didn't match.

There seems to be some matching issue. The same ~sport works fine in response!