class_docstr: For TADS 3 source code.
class_docstr_tok: ["For","TADS","3","source","code","."]
docstr: This is a rather generic descriptive language without strong
  identifiers. It looks like a 'GameMainDef' has to be present,
  and/or a 'versionInfo' with an 'IFID' field.
docstr_tok: ["This","is","a","rather","generic","descriptive","language","without","strong","identifiers",".","It","looks","like","a","'GameMainDef","'","has","to","be","present",",","and\/or","a","'versionInfo","'","with","an","'IFID","'","field","."]
code: def analyse_text(text):
      """This is a rather generic descriptive language without strong
      identifiers. It looks like a 'GameMainDef' has to be present,
      and/or a 'versionInfo' with an 'IFID' field."""
      result = 0
      if "__TADS" in text or "GameMainDef" in text:
          result += 0.2
  
      # This is a fairly unique keyword which is likely used in source as well
      if "versionInfo" in text and "IFID" in text:
          result += 0.1
  
      return result
  
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, using, this, default, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Error, Generic
label_desc: Use image node_id 5 for calling the Tads3Lexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: result