extracted adjustSizeOfShortWords() method