#NEWLINE# def classify( self , term , **kwargs ) : #NEWLINE# #INDENT# ' Returns the (most recently added) semantic type for the given term ("many" => "quantity").\n            If the term is not in the dictionary, try Taxonomy.classifiers.\n        ' #NEWLINE# term = self . _normalize ( term ) #NEWLINE# if dict . __contains__ ( self , term ) : #NEWLINE# #INDENT# return self [ term ] [ 0 ] . keys ( ) [ ( - 1 ) ] #NEWLINE# #UNINDENT# for classifier in kwargs . classifiers : #NEWLINE# #INDENT# v = classifier . parents ( term , ** kwargs ) #NEWLINE# if v : #NEWLINE# #INDENT# return v [ 0 ]