def _get_max_reaction_len(reactions, species_delimiter, reaction_delimiter,
                          stoich_format, include_TS):
    """Returns the maximum length of the reactions

    Parameters
    ----------
        reactions : :class:`~pmutt.reaction.Reactions` object
            Reactions to check
        species_delimiter : str
            Separates species
        reaction_delimiter : str
            Separates reaction states
        stoich_format : float
            Format to write stoichiometric numbers
        include_TS : bool
            If True, includes transition states in output
    Returns
    -------
        max_len : int
            Maximum length of reactions
    """
    rxns_len = []
    for reaction in reactions:
        rxn_len = len(
            reaction.to_string(species_delimiter=species_delimiter,
                               reaction_delimiter=reaction_delimiter,
                               stoich_format=stoich_format,
                               include_TS=include_TS))
        rxns_len.append(rxn_len)
    if len(rxns_len) == 0:
        max_len = 0
    else:
        max_len = max(rxns_len)
    return max_len