text.py: missing candidate_words method