Skip to content

Enforce exactly two words in randomname.get_name #12

@dpaleka

Description

@dpaleka

The command randomname.get_name() returns a string of the form abcd-efgh more than 99% of the time.
But, sometimes it returns a string of the form abcd-efgh-ijkl. This can break some fragile workflows.

There are exactly two offending lines for the adj-noun recipe:
https://github.com/imsky/wordlists/blob/b26782e929a288d55fae6f507760291b9367418d/nouns/food.txt#L40
https://github.com/imsky/wordlists/blob/cfee5df781890de614e8f634ed49ad853116ed35/adjectives/algorithms.txt#L20

I don't know whether it makes sense to ask for the change in the upstream repo, or to fix it here.

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