return (parent.getType() == AffixType.SUFFIX
            ? word.substring(0, word.length() - appending.length()) + removing
            : removing + word.substring(appending.length()));