README.md

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



sbha/englishtowns documentation built on Feb. 1, 2020, 4:17 a.m.