package
Version:
v0.0.0-...-b865509
Opens a new window with list of versions in this module.
Published: Aug 22, 2023
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
fake (package)
This package uses Markov chains to generate random names. Names that exist in
the input data are never returned.
Usage
package main
import (
"fmt"
"github.com/jsageryd/markov/fake"
)
func main() {
fmt.Println("female:", fake.FemaleFirstName(), fake.LastName())
fmt.Println(" male:", fake.MaleFirstName(), fake.LastName())
}
female: Marminella Kiwo
male: Tem Lohanni
Data
The input data for the name generators has been obtained from
SCB (Statistika Centralbyrån).
Male and female names
Lastnames
Documentation
¶
Package fake uses Markov chains to generate random names
FemaleFirstName generates a female firstname.
LastName generates a lastname.
MaleFirstName generates a male firstname.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.