Rename `get_candidates` and add docstring.