fakelish

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 4 Imported by: 2

README

fakelish

CircleCI

English-like word generator

Install

Executable binaries are available in GitHub Releases

Usage

$ fakelish -h
English-like word generator

Usage:
  fakelish [flags]

Flags:
      --capitalize    capitalize the first letter (default true)
  -h, --help          help for fakelish
      --max int       max length of fake word (default 9)
      --min int       min length of fake word (default 6)
  -n, --n-words int   number of fake words (negative makes infinite) (default 10)

Examples

$ fakelish 
Lebuffic
Caming
Unizans
Nantilien
Losychle
Deping
Subsce
Shemon
Unhyle
Reighthes

Try on The Go Playground

https://play.golang.org/p/_Y84Z00q6Ct

For JavaScript/TypeScript

GitHub Repository: https://github.com/nwtgck/fakelish-npm

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WordProbability map[string][]AccumedProb

Functions

func GenerateFakeWord

func GenerateFakeWord(minLength int, maxLength int) string

func GenerateFakeWordByLength

func GenerateFakeWordByLength(length int) string

func GenerateFakeWordWithUnexpectedLength

func GenerateFakeWordWithUnexpectedLength() string

Types

type AccumedProb

type AccumedProb struct {
	Ch   string
	Prob float32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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