@classmethod
def suggestParser(cls, ext, text):
    """ suggestParser(ext, text)
        
        Given a filename extension and text, returns the name of the suggested
        parser corresponding to the language of the file.
        
        See also registerFilenameExtension() and registerShebangKeyword()
        """
    parser = cls.suggestParserfromText(text)
    if parser == '':
        parser = cls.suggestParserfromFilenameExtension(ext)
    parser = cls.getParserByName(parser).disambiguate(text)
    return parser
