determine_name & determine_type work for most cases, lol.