memorable name generator gem for ruby

前端 未结 4 873
梦谈多话
梦谈多话 2021-02-04 15:25

Before I go roll my own and start pulling out the dictionary, does anyone know a rubygem to generate memorable names suitable for app keys. I need something pronounceable so th

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 15:54

    You can use randexp gem. It's use the dictionnary from your OS ( UNIX only )

    with randexp gem you can do something like :

    /[:word:]-[:word:]-\d+/.gen
    

    and have like heroku naming.

    If your server has no dict library install you can try faker or Lorem

    but really much limitated.

提交回复
热议问题