def notify_alert_words(user_profile: UserProfile, words: Iterable[str]) -> None:
    event = dict(type='alert_words', alert_words=words)
    send_event(user_profile.realm, event, [user_profile.id])
def notify_alert_words(user_profile: UserProfile, words: Iterable[str]) -> None:
    event = dict(type='alert_words', alert_words=words)
    send_event(user_profile.realm, event, [user_profile.id])