Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
superscriptjs/superscript
A dialogue engine for creating chat bots
People
Repo info
Activity
Ganaraj P R
@ganarajpr
because it has native bindings
Rob Ellis
@silentrob
It does help to step though what is going on... because the code is recursive in a few places.
Ganaraj P R
@ganarajpr
yeah .. what do you use for debugging ?
Rob Ellis
@silentrob
there is some fun funky stuff in post process around redirect and plugins.
haha Im old school. I use debug output.
Ganaraj P R
@ganarajpr
ah :)
Rob Ellis
@silentrob
and test.
So thats the other thing.. all the test should work and run. I backed them down to just test/script because that covers most core things.
Ganaraj P R
@ganarajpr
I do have some good experience with node itself .. but mostly pure 'js' stuff .. nothing to do with native bindings so far
Rob Ellis
@silentrob
And I run the other ones when I do bigger refactors
oh thats all I really meant.
as in. non DOM javascript :)
Ganaraj P R
@ganarajpr
im quite familiar with that :)
I have been mostly dabbling with AST's
which is why I had worked with jison and pegjs
Rob Ellis
@silentrob
Oh man, thanks for that BTW>
Im looking forward to playing with it.
Ganaraj P R
@ganarajpr
I will be happy to write a complete parser for superscript
with pegjs if you wish ?
i did go quite far in just a day :)
Rob Ellis
@silentrob
I would love to figure out a way to remove the regular expressions from the actually matching logic.. as is, it is quite slow.
Ganaraj P R
@ganarajpr
I have already covered alternates , optionals etc
Rob Ellis
@silentrob
Ya, I saw that!
Ganaraj P R
@ganarajpr
I was not sure you wanted that.. which is why I stopped
_
if you say yes I will do the whole thing
Rob Ellis
@silentrob
Let me play with that you have and get a feel for the syntax and lets see how well everything plays together
Ganaraj P R
@ganarajpr
sure
Rob Ellis
@silentrob
Im not fussed on PEG or Jison btw.
Ganaraj P R
@ganarajpr
well - do you know GSS ?
grid style sheets
Rob Ellis
@silentrob
I would really like to implement a full CCG for the internal message at some point too.
I have looked at it, and cassaway.js more specifically
I wanted to use the constraint solver to do sentence planning.
Ganaraj P R
@ganarajpr
yeah .. GSS uses pegjs .. you already know coffeescript uses jison
Rob Ellis
@silentrob
yep.
Ganaraj P R
@ganarajpr
hmm you mean something like parsec.. that would be interesting too
Rob Ellis
@silentrob
Something like this -
http://nlp.stanford.edu/software/sempre/
Ganaraj P R
@ganarajpr
wow :)
dint know about that one
Rob Ellis
@silentrob
So there are two, that one and one from the WWU team
Ganaraj P R
@ganarajpr
looks like you have some really interesting ideas for superscript
Rob Ellis
@silentrob
Here is the other one,
http://yoavartzi.com/
https://bitbucket.org/yoavartzi/spf
They both kinda to the same thing..
use CCG's and lamda calculas to parse english down to something the system can understand.
Ganaraj P R
@ganarajpr
so is your plan to port one of them ?
Rob Ellis
@silentrob
Maybe down the road.
BRB
Ganaraj P R
@ganarajpr
sure
Rob Ellis
@silentrob
Ya. I would like to add a little more smarts and NLU to the system.