Description
This is a golang implementation of name generator described at RinkWorks, its based on https://github.com/skeeto/fantasyname code.
fantasyname alternatives and similar packages
Based on the "Game Development" category.
Alternatively, view fantasyname alternatives based on common mentions on social networks and blogs.
-
nano
Lightweight, facility, high performance golang based game server framework -
goworld
Scalable Distributed Game Server Engine with Hot Swapping in Golang -
Pitaya
Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK. -
raylib-go
Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming. -
resolv
A Simple 2D Golang collision detection and resolution library for games -
tile
Tile is a 2D grid engine, built with data and cache friendly ways, includes pathfinding and observers.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of fantasyname or a related project?
Popular Comparisons
README
fantasyname
This is a golang implementation of name generator described at RinkWorks, its based on https://github.com/skeeto/fantasyname code.
example
How it looks like:
import (
"fmt"
"log"
"time"
"math/rand"
fn "github.com/s0rg/fantasyname"
)
rand.Seed(time.Now().UnixNano())
gen, err := fn.Compile("sV'i", fn.Collapse(true), fn.RandFn(rand.Intn))
if err != nil {
log.Fatal(err)
}
fmt.Println(gen.String()) // will print something like: entheu'loaf
Here is a full example.
You can run it with go run _example/main.go
to see results.
pattern syntax
The letters s
, v
, V
, c
, B
, C
, i
, m
, M
, D
, and d
represent different types of random replacements:
s
- generic syllablev
- vowelV
- vowel or vowel combinationc
- consonantB
- consonant or consonant combination suitable for beginning a wordC
- consonant or consonant combination suitable anywhere in a wordi
- insultm
- mushy nameM
- mushy name endingD
- consonant suited for a stupid person's named
- syllable suited for a stupid person's name (begins with a vowel)
Everything else is emitted literally.
All characters between parenthesis ()
are emitted literally. For example, the pattern s(dim)
,
emits a random generic syllable followed by dim
.
Characters between angle brackets <>
emit patterns from the table above.
Imagine the entire pattern is wrapped in one of these.
In both types of groupings, a vertical bar |
denotes a random choice. Empty groups are allowed.
For example, (foo|bar)
emits either foo
or bar
. The pattern <c|v|>
emits a constant, vowel,
or nothing at all.
An exclamation point !
means to capitalize the component that follows it. For example,
!(foo)
will emit Foo
and v!s
will emit a lowercase vowel followed by a capitalized syllable, like eRod
.
*Note that all licence references and agreements mentioned in the fantasyname README section above
are relevant to that project's source code only.