Skip to content

Examples of usage and output of my (Java) procedural generation package.

Notifications You must be signed in to change notification settings

joeclark-phd/procedural-generation-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

procedural-generation-examples

This repo contains a simple Java program to run some examples of procedural generation from my net.joeclark.proceduralgeneration package.

To run

The random-text-generators package is now available from Maven Central. Maven users, for example, import the dependency like so:

<dependency>
  <groupId>net.joeclark.proceduralgeneration</groupId>
  <artifactId>randomtextgenerators</artifactId>
  <version>1.0.1</version>
</dependency>

Το run this example suite, clone or download this repo to your system, open and run it in an IDE (I use IntelliJ). Make sure it imports the dependencies (or use Maven for that). Run the Main class.

Training data

Training data files are stored in the src/main/resources directory.

A few of these (e.g. romans.txt, vikings_male.txt, vikings_female.txt, uk_surnames.txt) I compiled from public sources. Then I discovered and copied over 118 files of sample data from a treasure trove in this Haxe-based name generator project by Tw1ddle, which is under a CC BY-NC 4.0 license. Lately I discovered a 15th-century list of names for dogs (!) from this article and added that as another resource.

If you'd like to add some data sets of your own, contributions of data are welcome! (As long as you're not violating someone's intellectual property.) Just fork and open a pull request.

Example output

Examples of random text using MarkovTextGenerator

ROMAN NAMES:
ligula
ancus
filius
colus
cotepos
inguonegorix
papullico
fasticens
sollicjan
verus

ROMAN NAMES ENDING IN -ia:
enrruscia
lucia
lucia
narcia
maria
maximia
ankrystia
maelinicia
tercia
mauquiria

VIKING MALE NAMES:
asgauthor
eyvinxi
varthrin
than
iarli
trœdipday
blæng
æråsmbi
saxfn
hemingimundi

VIKING FEMALE NAMES:
blæik
astvild
hild
hrodny
ragnfwhite
jarnurid
gudrun
jorunnhild
astvi
hildis

BLENDED MODEL: ANIMALS + VEGETABLES: (requires v1.0.1)
marmaduckoo
mackpanthemu
racfish
cresgonfly
babfirebat
pola
armabbaga
beetp
seale
panzet

Examples of random text using MarkovTextCasePreservingGenerator

UK SURNAMES (case preserved):
Farham
Trevory
Daly
Ackarson
Dunfarlan
Cawlings
Eanswort
Gascott
Farr
Shied

Examples of random text using RandomDrawGenerator

RANDOM DRAW UK SURNAMES
forshaw
trickett
ventura
gunning
sparkes
yeldon
whitehead
walpole
cumming
holt

Examples of random text using DoubleTextGenerator

VIKING MALE MARKOV TEXT + ROMAN MARKOV TEXT:
bjorn nelis
thidrnjojorn pastor
øpi  merus
hallvni sirilius
æskil commodus
gärdun ligula
thorar catus
hard titilis
thorodgæira elisauncus
autyrmivafni taenus

VIKING FEMALE MARKOV TEXT + RANDOM DRAW UK SURNAME:
doæikstylve pomphrey
skuerd bostock
gulfhruda gillett
blesi ropple
thkatla lennon
oddis bush
freøvinunn ballantyne
asgerdis stoddart
herkja legge
ingrlaug thornley

About

Examples of usage and output of my (Java) procedural generation package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages