pub fn detect_input_type(query: &str, known_domains: &[String]) -> InputType
Classify a query string into one of the four input types.