class_docstr: For `Logtalk <http://logtalk.org/>`_ source code.
  
  .. versionadded:: 0.10
code: def analyse_text(text):
      if ":- object(" in text:
          return 1.0
      elif ":- protocol(" in text:
          return 1.0
      elif ":- category(" in text:
          return 1.0
      elif re.search("^:-\s[a-z]", text, re.M):
          return 0.9
      else:
          return 0.0
  
file_path: wandb/wandb/vendor/pygments/lexers/prolog.py
imports: import re
  from pygments.lexer import RegexLexer, bygroups
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation
label_desc: Use image node_id 1 for calling the LogtalkLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int, int, int, int, int