def process_match_by_ordinary_dictionary(dictionary, match_object):
  """
  Process a match object using a dictionary of ordinary replacements.
  To be passed in the form
    functools.partial(process_match_by_ordinary_dictionary, dictionary)
  as the replacement-function argument to re.sub,
  so that an ordinary replacement dictionary can be used
  to process a regex match object.
  
  If the entire string for the match object
  is a key (pattern) in the dictionary,
  the corresponding value (replacement) is returned;
  otherwise the string is returned as is.
  """
  
  match_string = match_object.group()
  replacement = dictionary.get(match_string, match_string)
  
  return replacement