Tools for manipulating sentences