def is_anagram(word_a, word_b):
    """Checks if two words are anagrams to each other"""
    if len(word_a) != len(word_b):
        return False
    word_a = sorted(list(word_a))
    word_b = sorted(list(word_b))
    for k in range(0, len(word_a)):
        if word_a[k] != word_b[k]:
            return False
    return True