code: def inflect(word: str,
              count: int):
      
      if word in ['time', 'sentence']:
          return word if count == 1 else word + 's'
      elif word == 'was':
          return 'was' if count == 1 else 'were'
      else:
          return word + '(s)'
docs: Minimal inflection module.
  
      :param word: The word to inflect.
      :param count: The count.
      :return: The word, perhaps inflected for number.