def detect_anagrams(word, candidates): pass