def IsGoodTag(prefixes, tag):
  """Decide if a string is a tag

  @param prefixes: set of prefixes that would indicate
      the tag being suitable
  @param tag: the tag in question

  """
  for prefix in prefixes:
    if tag.startswith(prefix):
      return True
  return False