def partition(word: str, partitions: int) -> int:
    """
    Find a bucket for a given word.

    :param word:
    :param partitions:
    :return:
    """
    a = ord('a')
    z = ord('z')
    value = ord(word[0].lower())
    if partitions > 1 and a <= value <= z:
        pos = value - a
        return int(pos * (partitions - 1) / (z - a + 1)) + 1

    # Catch-all for numbers, symbols and diacritics.
    return 0