thde / fakeword

Go package fakeword allows to generate fake words.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Go package fakeword allows to generate fake words.

License:MIT License


Languages

Language:Go 100.0%