a functional framework for selecting sentences trajectories