Ruby port of the automatic codename generator