fake

package
v0.0.0-...-b865509 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 8 Imported by: 0

README

fake (package)

GoDoc License MIT

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

Overview

Package fake uses Markov chains to generate random names

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FemaleFirstName

func FemaleFirstName() string

FemaleFirstName generates a female firstname.

func LastName

func LastName() string

LastName generates a lastname.

func MaleFirstName

func MaleFirstName() string

MaleFirstName generates a male firstname.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL