def is_capitalized(text, pos, caps):
    """Checks if the current text position matches that start of a capitalized word"""
    for cap in caps:
        if text[pos:pos+len(cap)] == cap:
            return True
    return False