This repo contains a simple Java program to run some examples of procedural generation from my net.joeclark.proceduralgeneration
package.
-
Random text generation from joeclark-phd/random-text-generators.
- MarkovTextGenerator
- MarkovCasePreservingTextGenerator
- RandomDrawGenerator
- DoubleTextGenerator
- MarkovTextGenerator
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 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.
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