Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.

parse_state

Function: parse_state
  Extract a state from a full US address.

Examples:

  parse_state("123 Main St\nSometown, NY 12345")
  -- Result: "NY"

  parse_state("Not an address")
  -- Result: {"type":"address_parse_failed","english":"Unable to parse an address from \"Not an address\"","data":{"value":"Not an address"}}




Signatures
text -> text