def build_word_encoder_decoder(unique_words):
    """
    Given a set of unique words, creates an encoder that maps from words to integers
    and a decoder that maps from integers back to words

    :param unique_words: list of string words to encode and decode into ints
    :return: a dict to map each word in unique_words to an int and a list to decode each int to its word
    """
    word_decoder = []
    word_encoder = {}
    index = 0
    for word in unique_words:
        word_decoder.append(word.lower())
        word_encoder[word.lower()] = index
        index += 1
    return word_encoder, word_decoder