namegen-haskell: A name generator written in Haskell

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] [Publish]

Warnings:


[Skip to Readme]

Properties

Versions 0.1.0.0
Change log None available
Dependencies base (>=4.6 && <4.7), containers (>=0.5), random (>=1.0) [details]
License Apache-2.0
Author Federico Tomassetti
Maintainer f.tomassetti@gmail.com
Category Language
Home page https://github.com/ftomassetti/namegen-haskell
Uploaded by ftomassetti at 2014-10-07T20:21:53Z

Modules

Downloads

Maintainer's Corner

Package maintainers

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.