示例#1
0
def is_abbreviation(abbreviation, longform):
	
	category = None 
	outcome = False

	if len(abbreviation)!=0 and len(longform)!=0:
	
		if is_simple(abbreviation, longform):
			category = 'simple'
			outcome = True

		elif is_complex(abbreviation, longform):
			category = 'complex'
			outcome = True

		elif is_substring(abbreviation, longform):
			category = 'substring'
			outcome = True

	
	return outcome, category