public static double getOperationDiscount(EditOperation editOperation, int previousEdits) {
        double discount = 1;

        if(previousEdits > 0){
            int edits = previousEdits;
            switch (editOperation){
                case Insert:
                    discount = 0.33/ edits;
                    break;
                case Delete:
                    discount = 0.33 / edits;
                    break;
                case Match:
                    discount = 1;
                    break;
                case Substitution:
                    discount = 0.33 / edits;
                    break;
            }
        }

        return discount;
    }