Mimic signature of deprecated truncate_words.