NameGenerator-0.0.0: A name generator written in Haskell

Maintainerpommicket@gmail.com
Safe HaskellSafe-Inferred

NameGenerator

Description

 

Synopsis

Documentation

type Trigrams = Map String Int

A type that represents all the frequencies of trigrams.

first2Chars

Arguments

:: Trigrams

List of trigrams

-> IO String

First 2 characters

Get the first 2 characters of a name.

nextChar

Arguments

:: Trigrams

List of trigrams

-> String

Name so far

-> IO Char

Next character

Next character in a name.

generateName

Arguments

:: Trigrams

The list of trigrams

-> IO String

The name

Generate a name.