def get_bill_type(bill_id):
 prefix = re.match('([a-z]*)', bill_id.lower()).group()
 if (prefix in bill_types):
  return bill_types[prefix]
 else:
  return 'bill'

def get_bill_type ( bill_id ) : prefix = re . match ( '([a-z]*)' , bill_id . lower ( ) ) . group ( ) if ( prefix in bill_types ) : return bill_types [ prefix ] else : return 'bill'
bill_id = sjr2204 get_bill_type --> joint resolution .