from typing import Sequence


def bow_tag_tokens(tokens: Sequence[str], bow_tag: str = "<w>"):
    """Applies a beginning of word (BoW) marker to every token in the tokens sequence."""
    return [bow_tag + t for t in tokens]