Skip to content

Generate NPC names from Dwarf Fotress language files

License

Notifications You must be signed in to change notification settings

wesQ3/dorf-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dorf-name

Generate NPC names from Dwarf Fotress language files

Synopsis

$ dorf-name -c 10
Id Invisiblelabored
Ustir Bodicewhip
Zat Heavencombating
Tosid Wallanimal
Geshud Mobcave
Teling Princessflier
Ustuth Pillarfocused
Togal Skinharmonized
Gusil Vaultdrilling

dorf-name reads the Dwarf Fortress language files and generates a character name. Use it for your tabletop game or to make fun server names! You can also look up the properties of a DF word.

dorf-name -w earth
Word {
    root: "EARTH",
    noun: Some(
        Noun {
            singular: "earth",
            plural: "earths",
            usages: [
                FrontCompoundNounSing,
                RearCompoundNounSing,
                TheCompoundNounSing,
                TheNounSing,
                OfNounSing,
                RearCompoundNounPlur,
            ],
        },
    ),
    verb: None,
    adj: Some(
        Adjective {
            adj: "earthen",
            usages: [
                AdjDist2,
                FrontCompoundAdj,
                RearCompoundAdj,
                TheCompoundAdj,
            ],
        },
    ),
    prefix: None,
    translations: {
        "DWARF": "ber",
        "HUMAN": "etru",
        "GOBLIN": "usluk",
        "ELF": "saba",
    },
    symbols: [
        "NATURE",
        "EARTH",
    ],
}

Usage

$ dorf-name -h
Generate character names from DF language files

Usage: dorf-name [OPTIONS]

Options:
  -c, --count <INT>  How many names to generate
  -w, --word <STR>   Dump a word structure
  -h, --help         Print help
  -V, --version      Print version

About

This is my first Rust program and I made it primarily to learn. Nish nisûn!

⛏️ Abod ber! ⛏️

About

Generate NPC names from Dwarf Fotress language files

Resources

License

Stars

Watchers

Forks

Packages

No packages published