def snakefy(camel_name: str):
    """Convert given camel-case name to snake case."""
    words = []

    word = camel_name[0].lower()
    for char in camel_name[1:]:
        if char.isupper():
            words.append(word)
            word = char.lower()
        else:
            word += char.lower()
    words.append(word)

    return "_".join(words)