NameGenerator-0.0.2: A name generator written in Haskell

LicenseGPL-3
Maintainerpommicket@gmail.com
Safe HaskellSafe
LanguageHaskell2010

NameGenerator

Description

 
Synopsis

Documentation

type Trigrams = Map String Int Source #

A type that represents all the frequencies of trigrams.

getTrigrams :: IO Trigrams Source #

Get all trigrams from trigrams.txt

first2Chars Source #

Arguments

:: Trigrams

List of trigrams

-> IO String

First 2 characters

Get the first 2 characters of a name.

nextChar Source #

Arguments

:: Trigrams

List of trigrams

-> String

Name so far

-> IO Char

Next character

Next character in a name.

generateName Source #

Arguments

:: Trigrams

The list of trigrams

-> IO String

The name

Generate a name.