wordipy/main.py
def final_abbreviationize(output, input_str_list):
    """ This is a helper function for abbreviationize"""

    if all([x.isupper() for x in input_str_list]) or all(x.isupper() for x in output.split()):
        '''
        if all are upper ex: C M -> CM
        '''
        pattern = re.compile(r's+')
        output = re.sub(pattern, '', output)
        #assert(len("".join(input_str_list)) == len(a))
        output = output.replace(" ", "")
    return output
 This is a helper function for abbreviationize
This is a helper function for abbreviationize
This is a helper function for abbreviationize
def final_abbreviationize(output, input_str_list):
    if all([x.isupper() for x in input_str_list]) or all(x.isupper() for x in output.split()):
        pattern = re.compile(r's+')
        output = re.sub(pattern, '', output)
        output = output.replace(" ", "")
    return output
def final_abbreviationize ( output , input_str_list ) : if all ( [ x . isupper ( ) for x in input_str_list ] ) or all ( x . isupper ( ) for x in output . split ( ) ) : '''
        if all are upper ex: C M -> CM
        ''' pattern = re . compile ( r's+' ) output = re . sub ( pattern , '' , output ) output = output . replace ( " " , "" ) return output
This is a helper function for abbreviationize
This is a helper function for abbreviationize
""" This is a helper function for abbreviationize""" '''
        if all are upper ex: C M -> CM
        ''' #assert(len("".join(input_str_list)) == len(a))
output
input_str_list