def remove_text_after_word(sKeyword, sWord):
    """
    Removes all text after a keyword.

    Parameters:

      sKeyword: (string)

      sWord: (string)
    """
    if sKeyword in sWord:
        sWord = sWord[:sWord.find(sKeyword)]
    return sWord
