def analyse_text(text): rv = LassoLexer.analyse_text(text) if looks_like_xml(text): rv += 0.5 return rv