def field_to_flag(f, suffix):
    """
        Convert a field in the form of namespace:termname, along with a flag suffix, to a flag of the form:

            namespace_termname_suffix
    """
    return '{0}_{1}'.format(f.replace(':', '_'), suffix)
