Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/atulin/forged/llms.txt

Use this file to discover all available pages before exploring further.

ForgePerson is accessed via f.Person and currently exposes a single method: Username. It generates realistic-looking usernames by combining a core word drawn from a locale-aware data file with optional decorative prefixes and suffixes, and an optional leet-speak pass that substitutes letters with visually similar symbols or digits (for example, a4, e3, s$). All three modifiers are governed by independent probability parameters so you can tune the flavour of generated names from clean and readable to deliberately stylised gamer tags.

Username

Produces a random username string. The core word is always included; prefixes, suffixes, and leet-speak substitutions are applied probabilistically based on the supplied chances.
public Generator<string> Username(
    float prefixChance = 0.5f,
    float suffixChance = 0.5f,
    float leetChance   = 0.1f
)
prefixChance
float
Probability from 0.0 (never) to 1.0 (always) that a prefix word is prepended to the core username. Defaults to 0.5 — a prefix is added about half the time.
suffixChance
float
Probability from 0.0 (never) to 1.0 (always) that a suffix is appended to the username. Defaults to 0.5 — a suffix is added about half the time.
leetChance
float
Per-character probability from 0.0 (never) to 1.0 (always) that each letter in the core word is replaced with a leet-speak equivalent. Defaults to 0.1 — about one in ten characters is substituted.Example substitutions from the built-in table:
LetterPossible replacements
a4, @, ^
e3
i1, !, |
o0, ()
s5, $, z
t7, +,
returns
Generator<string>
A randomly assembled username string. With default probabilities the output might look like "shadow_wolf", "DarkByte42", or "pr0t0n".
Examples
// Any combination of prefix/suffix/leet at default rates
Nickname = f => f.Person.Username(),

Build docs developers (and LLMs) love