flabild

package module
v0.0.0-...-061e226 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 4 Imported by: 0

README

flabild

CI Status

Generator of fake pronounceable words

Summary

This is Markov chain based generator of fake words. During generation each following letter choosen by a frequency based on two previous letters. This leads to generaton of (semi-) pronounceable words. Frequency module is generated from provided dictionary, allowing for generation of fake words in different languages. The architecture is pluggable. Currently here is only two plugin: english and russian.

Name

flabild is a generated fake pronounceable word meaning generator of fake pronounceable words.

Usage

$ flabild -n 12
an
stlentanes
pose
ser
mer
ble
in
aallingioldwidly
dianta
obbly
mirt
cometal

$ flabild -n 7 -lang ru
эшею
заясь
мещриваешься
альное
вышлёном
говавшие
малившеесочке

License

MIT

Documentation

Index

Constants

View Source
const PLUGIN_API_FUNC = "BuildChoicesMap"

Variables

This section is empty.

Functions

This section is empty.

Types

type Chooser

type Chooser struct {
	// contains filtered or unexported fields
}

func NewChooser

func NewChooser(p flabildPlugin) (*Chooser, error)

func (*Chooser) Word

func (c *Chooser) Word() (string, error)

type Pair

type Pair [2]rune

func NewPair

func NewPair(a, b rune) Pair

type PairMap

type PairMap map[Pair][]weightedrand.Choice[rune, int]

Directories

Path Synopsis
_tools
generator command
This program generates a plugin module from a given dictionary file.
This program generates a plugin module from a given dictionary file.
cmd
flabild command
plugins
en command
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
ru command
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.

Jump to

Keyboard shortcuts

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