Co-authored-by: Quentin Torroba <quentin.torroba@mistral.ai> Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai> Co-authored-by: Vincent Guilloux <vincent.guilloux@mistral.ai> Co-authored-by: Clement Sirieix <clem.sirieix@gmail.com> Co-authored-by: Antoine W <antoine.wronka@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
113 lines
1.5 KiB
Python
113 lines
1.5 KiB
Python
from __future__ import annotations
|
|
|
|
import random
|
|
|
|
_ADJECTIVES = [
|
|
"bold",
|
|
"brave",
|
|
"bright",
|
|
"calm",
|
|
"clever",
|
|
"cool",
|
|
"cosmic",
|
|
"crisp",
|
|
"curious",
|
|
"daring",
|
|
"eager",
|
|
"fair",
|
|
"fierce",
|
|
"gentle",
|
|
"golden",
|
|
"grand",
|
|
"happy",
|
|
"keen",
|
|
"kind",
|
|
"lively",
|
|
"lucky",
|
|
"merry",
|
|
"mighty",
|
|
"noble",
|
|
"proud",
|
|
"quick",
|
|
"quiet",
|
|
"rapid",
|
|
"rustic",
|
|
"serene",
|
|
"sharp",
|
|
"shiny",
|
|
"silent",
|
|
"smooth",
|
|
"snowy",
|
|
"steady",
|
|
"swift",
|
|
"tiny",
|
|
"vivid",
|
|
"warm",
|
|
"wild",
|
|
"wise",
|
|
"witty",
|
|
"zesty",
|
|
]
|
|
|
|
_NOUNS = [
|
|
"arch",
|
|
"bloom",
|
|
"breeze",
|
|
"brook",
|
|
"cabin",
|
|
"canyon",
|
|
"cedar",
|
|
"cliff",
|
|
"cloud",
|
|
"comet",
|
|
"coral",
|
|
"crane",
|
|
"creek",
|
|
"dawn",
|
|
"dune",
|
|
"ember",
|
|
"falcon",
|
|
"fern",
|
|
"flame",
|
|
"flint",
|
|
"forest",
|
|
"frost",
|
|
"glen",
|
|
"grove",
|
|
"harbor",
|
|
"hawk",
|
|
"lake",
|
|
"lark",
|
|
"maple",
|
|
"marsh",
|
|
"meadow",
|
|
"mesa",
|
|
"mist",
|
|
"moon",
|
|
"oak",
|
|
"orbit",
|
|
"peak",
|
|
"pine",
|
|
"pixel",
|
|
"pond",
|
|
"reef",
|
|
"ridge",
|
|
"river",
|
|
"rocket",
|
|
"sage",
|
|
"shore",
|
|
"spark",
|
|
"stone",
|
|
"storm",
|
|
"trail",
|
|
"vale",
|
|
"wave",
|
|
"willow",
|
|
"wolf",
|
|
]
|
|
|
|
|
|
def create_slug() -> str:
|
|
adj1, adj2 = random.sample(_ADJECTIVES, 2)
|
|
noun = random.choice(_NOUNS)
|
|
return f"{adj1}-{adj2}-{noun}"
|