Thanks Bruce, that worked.
So, I’m trying to build a simple travel agent. Right now I’m getting a sense of the parser.
For matching things like “western canada”, “Spain”, “San Francisco”, or “LAX”, should I make a new concept combining ~countries, ~cities, etc., or is ~propername a better bet? It also seemed like ~spacename should work, but I couldn’t get it to match.
How would you go about making a parser for flexible times, like “in two weeks”, “next wednesday at noon”, or “on july 2nd”? I played with ~time_reference and ~dateinfo, but suspect there’s a more general way. For example, this works
#! I want to go to Spain in 2 weeks.
s: ( ~travel_verbs *~2 _~propername *~1 _~number _~time_reference ) You are going to _0 in _1 _2.
but it doesn’t match “in TWO weeks”, or more complex patterns around dates.
Also, I tried
s: ( ~travel_verbs *~2 _~propername *~2 _~dateinfo ) You are going to _0 on _1.
thinking it would match “I want to go to Spain on thursday, nov 2nd.”, but it didn’t.
Is there an internal command to quickly test concepts or patterns against a trial input?