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