from typing import List
from typing import Union


def find_swearing(string: str, banned_words: List[str]) -> Union[str, None]:
    """Returns a word which was found to be a swear in a string."""
    for word in string.split():
        if word in banned_words:
            return word
    return None