def pattern_scan(string):
words = string.split()
wcount = len(words)
eng_count = english_test(string)
print "\n\t\tNumber of Wrods : ", wcount
print "\n\t\tEnglish words =", eng_count
ratio = float("0.0")
ratio = float(eng_count)/float(wcount)
if (ratio > float("0.5")):
print "\n\t\t> The given string is a collection of English words"
return False
else :
return True
评论列表
文章目录