def format_fulltext_duration(seconds):
    """Format a duration as ``h hours, m minutes``.

    Parameters
    ----------
    seconds : int
        Duration in seconds.

    Returns
    -------
    str
    """
    minutes, seconds = divmod(seconds, 60)
    hours, minutes = divmod(minutes, 60)
    if hours > 2:
        if minutes >= 30:
            hours += 1
        return '{} hours'.format(hours)
    elif hours > 0:
        return '{} hours, {} minutes'.format(hours, minutes)
    if minutes > 2:
        if seconds >= 30:
            minutes += 1
        return '{} minutes'.format(minutes)
    elif minutes > 0:
        return '{} minutes, {} seconds'.format(minutes, seconds)
    else:
        return '{} seconds'.format(seconds)
