code: def get_stem(self, noun, gender, mimation=True):
          
          stem = ''
          if mimation and noun[-1:] == 'm':
              # noun = noun[:-1]
              pass
          # Take off ending
          if gender == 'm':
              if noun[-2:] in list(self.endings['m']['singular'].values()) + \
                      list(self.endings['m']['dual'].values()):
                  stem = noun[:-2]
              elif noun[-1] in list(self.endings['m']['plural'].values()):
                  stem = noun[:-1]
              else:
                  print("Unknown masculine noun: {}".format(noun))
          elif gender == 'f':
              if noun[-4:] in self.endings['f']['plural']['nominative'] + \
                      self.endings['f']['plural']['oblique']:
                  stem = noun[:-4] + 't'
              elif noun[-3:] in list(self.endings['f']['singular'].values()) + \
                      list(self.endings['f']['dual'].values()):
                  stem = noun[:-3] + 't'
              elif noun[-2:] in list(self.endings['m']['singular'].values()) + \
                      list(self.endings['m']['dual'].values()):
                  stem = noun[:-2]
              else:
                  print("Unknown feminine noun: {}".format(noun))
          else:
              print("Unknown noun: {}".format(noun))
          return stem
docs: Return the stem of a noun, given its gender