def format_grammar(errorList, singular, plural, errorType):
        """
        [errorList] - A list of players' IDs
        [singular] - Singular verb for an object
        [plural] - Plural verb for an object
        [errorType] - Type of error message to be displayed

        Reformats the error message by formatting the verbs in the sentence
        """

        # Returns empty string if list is empty
        errorText = f"<@{errorList[0]}>" if errorList else ""
        for playerID in errorList[1:]:
            errorText += f", <@{playerID}>"

        # Grammar correction
        if errorText:
            if len(errorList) == 1:
                errorText += f" {singular} {errorType}"
            else:
                errorText += f" {plural} {errorType}"
        return errorText