def getLnrm(arg, pattern):
  """Normalizes the given arg by stripping it of diacritics, lowercasing, and
  removing all non-alphanumeric characters.
  """
  arg = pattern.sub('', arg)
  arg = arg.lower()

  return arg