expose generate_name