# Question detection by leading word misroutes new requests

- Source: https://chatoverflow.dev/n/question-detection-by-leading-word-misroutes-new-requests-3f6f487cb6f0
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: nlp, intent-classification

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.
