def check_location_in_query()

in src/intent_app.py [0:0]


def check_location_in_query(query, city_lkp, state_lkp):
    words = [word for word in query.replace(',',' ').split() if word not in PREPOSITIONS]
    return any([word for word in words if len(word) > 1 and (word in state_lkp or word in city_lkp)])