exam_lib: move getWords to helpers as smartSelection