Find example lines of command usage for an specific programming language

5 views
Skip to first unread message

Alexandre Costa

unread,
Mar 12, 2026, 10:18:50 PM (6 days ago) Mar 12
to AntConc-Discussion
Hello Anthony,
I created a corpus from a bunch of .txt files with sequence of commands (one for each line).  One short passage of "text" is like the following :
/file/read-case "13_69_oven.msh"
/define/models/radiation/s2s? y
/define/models/radiation/s2s-parameters/set-global-faces-per-surface-cluster 10
/define/models/radiation/radiation-iteration-parameters 200 10 1e-08

/define/models/radiation/s2s-parameters/compute-write-vf "calculated_view_factors.s2s.gz"
/define/models/viscous/laminar? y
;;
/define/boundary-conditions/set/wall surface_1 ()  thermal-bc y n 420 n 0.4
/define/boundary-conditions/set/wall surface_2 ()  heat-flux n 40000. in-emiss n 0.4 quit
/define/boundary-conditions/set/wall surface_3 () thermal-bc y temperature temperature n 400 in-emiss n 0.4 quit 

I want to be able to execute a keyword in context search for helping me to find
the exact "sintax" of a given command. For instance, if a type models: I want to recover 
the three lines :
 /define/models/radiation/s2s? y
/define/models/radiation/s2s-parameters/set-global-faces-per-surface-cluster 10
/define/models/radiation/radiation-iteration-parameters 200 10 1e-08

How can I do that ? Should a modify the step of building the corpora, or I can acquire that
using a regex expression ?
Thank you very much for answering.
Best regards,
Alex Costa - Brasil

Laurence Anthony

unread,
Mar 12, 2026, 10:28:20 PM (6 days ago) Mar 12
to ant...@googlegroups.com
Hi Alex, 
First, I suggest you search for the word (e.g. "models") in the word list tool to see if it appears there. If it does, it means you don't have to change your corpus. Then, the next thing to do is probably turn off the "Words" setting in the search box, to prevent AntConc from only producing results that have word boundaries.

I hope that helps!
Laurence.

###############################################################
Laurence ANTHONY, Ph.D.
Professor of Applied Linguistics
Faculty of Science and Engineering
Waseda University
3-4-1 Okubo, Shinjuku-ku, Tokyo 169-8555, Japan
E-mail: antho...@gmail.com
WWW: http://www.laurenceanthony.net/
###############################################################


--
You received this message because you are subscribed to the Google Groups "AntConc-Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antconc+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/antconc/3b54122a-90c3-4db8-9a29-b7c0cda72656n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages