https://github.com/ftomassetti/namegen-haskell
A name generator written in Haskell
https://github.com/ftomassetti/namegen-haskell
Last synced: 8 months ago
JSON representation
A name generator written in Haskell
- Host: GitHub
- URL: https://github.com/ftomassetti/namegen-haskell
- Owner: ftomassetti
- License: apache-2.0
- Created: 2014-10-05T10:50:57.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-07T19:58:38.000Z (almost 11 years ago)
- Last Synced: 2024-12-27T07:45:08.502Z (9 months ago)
- Language: Haskell
- Size: 148 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
namegen-haskell
===============A name generator written in Haskell
Usage:
```haskell
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](http://github.com/ftomassetti/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.