def gender(word, pos=NOUN):
 w = word.lower()
 if (pos == NOUN):
  if w.endswith(gender_masculine):
   return MASCULINE
  if w.endswith(gender_feminine):
   return FEMININE
  if w.endswith(gender_neuter):
   return NEUTER
  for g in gender_majority_vote:
   if w.endswith(gender_majority_vote[g]):
    return g

def gender ( word , pos = NOUN ) : w = word . lower ( ) if ( pos == NOUN ) : if w . endswith ( gender_masculine ) : return MASCULINE if w . endswith ( gender_feminine ) : return FEMININE if w . endswith ( gender_neuter ) : return NEUTER for g in gender_majority_vote : if w . endswith ( gender_majority_vote [ g ] ) : return g
returns the gender for nouns .