func ValidateResult(result Result) error {
	if nil == result {
		return &EmptyResultError{}
	} else if len(result.Entries()) < 1 || "" == result.Headword() {
		return &EmptyResultError{result.Headword()}
	}
	return nil
}
ValidateResult validates the result and returns an error if invalid
package source
import (
	"fmt"
	"net/http"
	"strings"
)
const (
	emptyResultErrorMessage         = "the source returned an empty result"
	authenticationErrorMessage      = "the source returned an authentication error"
	invalidResponseErrorMessage     = "the source returned an invalid response"
	errorMessageForWordSuffixFormat = " for word: %q"
	contentTypeHeaderName = "Content-Type"
)
var acceptableStatusCodes = []int{http.StatusOK}
type EmptyResultError struct {
	Word string
}
type AuthenticationError struct {
}
type InvalidResponseError struct {
	httpResponse *http.Response
}