def getFinal(endstr):
    """ returns the final consonant or empty string """
    if not endstr:
        return ''
    simplesuffixes = ['m', 'p', 'n', "'", 'k', 'r', 'l', 'g']
    lastchar = endstr[-1]
    if endstr.endswith('ng'):
        return 'ng'
    elif lastchar in simplesuffixes:
        return lastchar
    return ''
