Skip to content

Generate city names by removing "city" from the end of randomly selected English words

License

Notifications You must be signed in to change notification settings

trichoplax/city-namer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

City namer

Run from the terminal or import into your own code.

Terminal

Run with or without arguments.

Without arguments

python city_namer.py

Generates 1 city name by default.

With arguments

python city_namer.py 5

Generates 5 city names.

Import

Call with or without arguments.

Without arguments

from city_namer import city_names

for city in city_names():
    print(city)

Generates 1 city name by default.

With arguments

from city_namer import city_names

for city in city_names(5):
    print(city)

Generates 5 city names.

Limitation

Note that the number of city names available is limited by the number of words ending with "city", and beyond this limit specifying a higher number will not generate more words.

About

Generate city names by removing "city" from the end of randomly selected English words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages