def craft_url(word: str, locale: str, raw: bool = False) -> str:
    """Craft the *word* URL for the given *locale*."""
    url = f"https://{locale}.wiktionary.org/w/index.php?title={word}"
    if raw:
        url += "&action=raw"
    return url