def _getWordCategory(word, words_category_index):
    """
    Retrieves the category of a word
    :param word:
    :param words_category_index:
    :return:
    """
    if word in words_category_index:
        return words_category_index[word]
    else:
        return None