import re


def get_decontracted_form(text):
    """
    Function to expand words like won't, can't etc.
    """
    text = re.sub(r"won[\']t", "will not", text)
    text = re.sub(r"can[\']t", "can not", text)
    text = re.sub(r"shan[\']t", "shall not", text)
    text = re.sub(r"she ain[\']t", "she is not", text)
    text = re.sub(r"he ain[\']t", "he is not", text)
    text = re.sub(r"you ain[\']t", "you are not", text)
    text = re.sub(r"it ain[\']t", "it is not", text)
    text = re.sub(r"they ain[\']t", "they are not", text)
    text = re.sub(r"we ain[\']t", "we are not", text)
    text = re.sub(r"i ain[\']t", "i am not", text)
    text = re.sub(r"n[\']t", " not", text)
    text = re.sub(r"[\']re", " are", text)
    text = re.sub(r"[\']ll", " will", text)
    text = re.sub(r"[\']t", " it ", text)
    text = re.sub(r"[\']ve", " have", text)
    text = re.sub(r"[\']m", " am", text)
    text = re.sub(r"[\']em", " them", text)
    text = re.sub(r"[\']s", " is", text)
    return text