facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.05k stars 719 forks source link

smallest possible range/body #694

Open devsnek opened 2 years ago

devsnek commented 2 years ago

if you provide an input like say hi at 5pm, the matching range and body will be at 5pm. I'm trying to figure out if there is a reliable way to just get the range of the 5pm, ignoring the at. This does seem to have some nuance as well, for example say hi in 5 minutes should still be in 5 minutes and not 5 minutes. Is this currently possible with the data being parsed/returned?