The namegen-haskell package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:


[Skip to ReadMe]

Properties

Version0.1.0.0
Change logNone available
Dependenciesbase (==4.6.*), containers (>=0.5), random (>=1.0) [details]
LicenseApache-2.0
AuthorFederico Tomassetti
Maintainerf.tomassetti@gmail.com
CategoryLanguage
Home pagehttps://github.com/ftomassetti/namegen-haskell
UploadedTue Oct 7 20:21:53 UTC 2014 by ftomassetti

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for namegen-haskell-0.1.0.0

[back to package description]

namegen-haskell

A name generator written in Haskell

Usage:

samples <- loadSamples path -- samples is just a list of Strings
let language = fromSamples samples
let myGeneratedName = generateName language seed -- seed could be ontained from a Random Generator

Obtaining data

This name generator analyze a set of samples and derive the probability of a certain sequences of characters. For example, in Italian the sequence 'mp' is always followed by a vowel. By analyzing a samples of Italian names, the library will derive this rule and provide a name generator which have a probability equal to 0.0 for all the sequences 'mp' -> consonant.

A set of samples for different categories of names in different languages is provided in the related project namegen-data.

New, original languages can be obtaines simply by using a set of samples obtained by mixing different sets. If you take 100 Elvish male names, 200 names of Japanese cities and 70 Spanish female names you will obtain a pretty unique new name generator which you can use in you fantasy world.