Hi Bruce, sorry to bother again but I am having a problem which I cannot solve for 3 days now.
I have this code:
——————————-
concept: ~weekdays ( monday tuesday wednesday thursday friday saturday sunday )
concept: ~months ( january february march april june july august september october november december january february march april june july september october november december )
concept: ~day_phase ( morning dusk noon afternoon evening dawn night night midnight )
patternmacro: ^TIMEMACRO()
[
( ( _~weekdays ) { _at } _( ~number { : } { ~number } { a.m. p.m. } ) ) # friday 13:00
( _[ ~number ] _[ in_the ] _[ ~day_phase ] ) # 6 in the morning
]
TOPIC: ~productivity-time (time clock day month year date ~weekdays ~months ~day_phase)
u: PATT ( * ^TIMEMACRO() * ) ^keep() ^repeat() Matched: _0 _1 _2.
——————————————
While stuff like “friday at 13 : 00 pm” matches just fine (“Matched: Friday at 13 : 00 p.m..) , when I say : “I came at 6 in the evening once” the output will be “Matched: 6 a.”
The engine always replaces “in the” with “in a” and I have no idea where that comes from.
Moreover if I use the following matching:
u: PATT ( _[ ~number ] _[ “in the” ] _[ ~day_phase ] ) ^keep() ^repeat() Matched _0 _1 _2.
I get: “Matched: 6 in a even.”
In this case the engine messes with “evening” transforming it in “even”, I guess it thinks it is a verb or something.
I also had great trouble matching words like “this evening”, the system changes it before matching to “a evening”.
Is there a way to turn off these replacements?
Thanks!