See https://logtalk3.readthedocs.io/en/latest/userman/expansion.html for a summary of Logtalk’s term-expansion mechanism. Happy to discuss and provide feedback.
P.S. The ReadTheDocs website is used just for previewing the git version of the Handbook. Some links may not work as only the git version of the Handbook is published there. In alternative open the
manuals/index.html file in the git version after a git pull.