text_handler rewritten to sanity, mine_candidates_text is now the core data mining method