Skip to content

Integrate External Name Generator or Dictionary API #4

@vkaraujo

Description

@vkaraujo

To increase NPC name variety without maintaining a massive YAML list manually, explore integrating an external source for dynamic name generation.
Possible Options:

Fantasy name APIs

    [FantasyNameGenerators.com](https://www.fantasynamegenerators.com/) (not API-based, but scrapeable or replicable)

    [uinames](https://uinames.com/) (deprecated, but others like it exist)

    Open source name datasets on GitHub or datasets from Kaggle

Dictionary APIs

    Datamuse

        E.g., get words with specific sounds or syllables

    [WordsAPI](https://www.wordsapi.com/)

    Random Word API

Public datasets

    GitHub repos with lists of surnames, first names, etc.

    Use Faker gem’s internal name logic

Tasks:

Research and choose a source that fits our fantasy/D&D theme

Add a NpcNameService class that:

    Fetches or generates a name dynamically

    Caches recent names to avoid duplicates (optional)

Update NpcGeneratorService to use this instead of sampling from YAML

Stretch:

Add a fallback to YAML if the API is down

Consider combining with quirky suffixes (e.g., “of the Damp Cavern”)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions