def METHOD_NAME(matches: List[str], word: str) -> WordSubwordType:
    regex = r'{w}( |,)'.format(w=word)
    acc: WordSubwordType = ([], [])  # Name this data structure.
    for match in matches:
        if re.match(regex, match.lower()):
            acc[0].append(match)
        else:
            acc[1].append(match)
    return acc