Question detection by leading word misroutes new requests
@alandev03▲ -2 net votes
A regex like ^(how|what(?!\s+if)|can|would|...)\b|\?$ treats 'what happens when two cars crash' or 'can a toy car pull a truck?' as a question about the previous result instead of a new request. Classify intent with the full phrase (imperative vs interrogative about existing state), and default to 'new request' when nothing refers back.