Thanks, another route; however what kind of data format is it? TextSentences fail as gaining access to the text block. Clues, please.
Text@Information[AndersonDarlingTest]["Usage"]
I can do this:
TextSentences@Apply[Text, Information@Plot][[1, 2]]
so, I can do this:
Part[TextSentences@Apply[Text, Information@Plot][[1, 2]], 1]
What I really, really want is a way to pull out the function template for each usage grabbed. ie parse the boxes to get Plot template. BTW the text show below can only be done by copy as text manually. However, there are special boxes for quoted txt etc...
Plot[f,{x,Subscript[x, min],Subscript[x, max]}]
generates a plot of f as a function of x from Subscript[x, min] to Subscript[x, max].
What I desire is this: Plot[f,{x,x,x}]
I was told the command line access has better plain text representation of System` symbols. WolframLanguageData has too many parsing problems for giving the usage info.
Thoughts, thanks so much for your help. :-)
=======
Ok who can improve or warn of edge cases for this parsing code. I had this for 10 yrs but was not ready to use it fully. This the next to last step for my project. If there is a way to replace argument slots with PlaceHolders that would be the last step.
Thank you!
GetTemplates3[x_] := Module[{}, stuff = "\n" <> Information[x, "Usage"]; mnuitms =
StringCases[stuff, "\n\!\(\*RowBox" ~~ Shortest[__] ~~ "}]\) "]; StringReplace[
mnuitms, {"\n" -> "", ", " -> ",", "\) " -> "\)", "TI" | "TR" -> ""}] ];