def grade(adjective, suffix=COMPARATIVE):
 b = predicative(adjective)
 if ((suffix == SUPERLATIVE) and b.endswith(('s', u'\xdf'))):
  suffix = suffix[1:]
 return ((adjective[:len(b)] + suffix) + adjective[len(b):])

def grade ( adjective , suffix = COMPARATIVE ) : b = predicative ( adjective ) if ( ( suffix == SUPERLATIVE ) and b . endswith ( ( 's' , u'\xdf' ) ) ) : suffix = suffix [ 1 : ] return ( ( adjective [ : len ( b ) ] + suffix ) + adjective [ len ( b ) : ] )
creates draganddrop instance from user_input and correct_answer and calls draganddrop .