Skip to main content

detect_attribute_query

Function detect_attribute_query 

Source
pub fn detect_attribute_query(query: &str) -> Option<AttributeQuery>
Expand description

Detect and extract attribute query components

Patterns detected:

  • “What is X’s Y?” / “What is X’s Y”
  • “What is the Y of X?”
  • “What Y does X have?”
  • “Is X Y?” (boolean attribute)
  • “Where does/is X?” (location attribute)
  • “How old is X?” (age attribute)