Word refactoring