Add support for endings with two and three words.