alexanderlukanin13 / coolname

Random Name and Slug Generator
BSD 2-Clause "Simplified" License
140 stars 12 forks source link

Feature request: custom words separator #11

Closed khssnv closed 3 years ago

khssnv commented 3 years ago

Currently, coolname.generate_slug() always uses - as a words separator. It would be nice to allow a user-defined separator.

Example

>>> import coolname
>>> coolname.generate_slug('_')
competent_earthworm_of_weird_pleasure
alexanderlukanin13 commented 3 years ago

Alisher, thank you for your interest and for the idea, but I have to decline the PR according to "keep it simple" principle. It's trivial to write a custom function doing '_'.join(generate()). "slug" was intended in a narrow sense, like in Django, words-with-hyphens :-)