func Pluralize(word string) string {
	if len(word) == 0 {
		return word
	}
	lastChar := word[len(word)-1:]
	if lastChar == "s" {
		return word
	}
	if len(word) >= 2 {
		secondLastChar := word[len(word)-2 : len(word)-1]
		if lastChar == "y" &&
			secondLastChar != "a" &&
			secondLastChar != "e" &&
			secondLastChar != "i" &&
			secondLastChar != "o" &&
			secondLastChar != "u" &&
			secondLastChar != "y" {
			return word[:len(word)-1] + "ies"
		}
		if lastChar == "h" && secondLastChar == "c" {
			word += "e"
		}
	}
	return word + "s"
}
Pluralize pluralizes the given word.
package spec
import (
	"errors"
	"fmt"
	"sort"
	"strconv"
	"strings"
	"github.com/xeipuuv/gojsonschema"
)