def pluralize(apitools_collection_guess):
  """Pluralize krm_kind and handle common atypical pluralization cases."""
  ending_plurals = [('Policy', 'Policies'), ('Proxy', 'Proxies'),
                    ('Repository', 'Repositories'), ('Index', 'Indexes'),
                    ('Address', 'Addresses')]
  found_plural = False
  for singular, replacement_plural in ending_plurals:
    if apitools_collection_guess.endswith(singular):
      apitools_collection_guess = apitools_collection_guess.replace(
          singular, replacement_plural)
      found_plural = True
  if not found_plural:
    apitools_collection_guess += 's'
  return apitools_collection_guess