Skip to content

sbha/englishtowns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

englishtowns

Overview

A function for creating fake English, Irish, and German town names.

Installation

# install.packages("devtools")
devtools::install_github("sbha/englishtowns")

Usage

The default is to generate an English town:

library(englishtowns)
generate_town()
#> Greathamrough

Setting the country argument to 'Ireland' will generate an Irish name:

generate_town(country = 'Ireland')
#> Ballyalliagh

Setting the country argument to 'Germany' will generate a German name:

generate_town(country = 'Germany')
#> Neustaberheim

Maybe you can do something fun with it:

paste0('I was born in ', 
       generate_town(), 
       ', England, went to university in ', 
       generate_town('Ireland'), 
       ', Ireland, and now live in ', 
       generate_town('Germany'), 
       ', Germany.')
#> "I was born in Easthippingford, England, went to university in Balliallymore, Ireland, and now live in Neustadtstahausen, Germany."

Data Sources

English towns: Wikipedia
Irish towns: Wikipedia
German towns: Wikipedia

About

Generate fake English town names

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages