Skip to content

thde/fakeword

Repository files navigation

fakeword

Go Reference test Go Report Card

Go package fakeword allows to generate fake words.

Example

Adding some English words, will generate fake words that sound english.

Try the example online on pkg.go.dev.

package main

import "thde.io/fakeword"

func main() {
    words := []string{
        "Psychotomimetic",
        "Pulchritudinous",
        "Consanguineous",
        "Trichotillomania",
    }

    dict := fakeword.Dictionary{}
    dict.Add(words...)

    gen := dict.Generator()
    fmt.Println(gen.Word())
}

The library was inspired by nwtgck/go-fakelish.