concept: ~subscription_type (yearly weekly daily)
topic: ~test (~subscription_type)
# yearly subscription cost for books
u: ( _{[~subscription_type]} [subscription ] [for] _*1 > ) ^keep() ^repeat() $$type = ^original(_0) $product = ^original(_1)
if ( $$type == yearly ) {
Yearly subscription cost for $product is call_service
}
else if ( $$type == weekly ) {
weekly subscription cost for $product is call_service
}
else if ( $$type == daily ) {
daily subscription cost for $product is call_service
}
# subscription
u: ( _{[monday tuesday ]} [subscription]) ^keep() ^repeat() $$type = ^original(_0)
$$type subscription cost is call_service
In both cases it executes the second rule and gives output as Yearly subscription cost is 2500, how can I make the rules more efficient to identify the patterns