5
$\begingroup$

Here's a word cloud tally of the ~5k System names split at camel humps, with the long tail cropped.

What resources are available to organize these terms using the new Entity functionality? Applications might include:

  • Retrieve related objects Select[MatchQ[{___, "Graph"}]] exceptions to camel hump model include: HighlightGraph is not a type of graph, HermiteH should be grouped with Polynomial entity. Is there a method to crowd-source tagging and linking? Or even automate discovery of such links (eg from documentation).
  • Tree or graph visualization of related symbols.
  • Highlight undocumented symbols.
  • Compare Attributes.

EDIT:

By request, code to generate the word cloud. Note that I'm using my more compact method rather than Aisamu's foolproof, b/c they give basically the same result mod a few symbols.

names[in] = Names["System`*"] // Select[StringLength[#] > 1 &] ;

humpCharacters = 
  Flatten@{CharacterRange["A", "Z"], CharacterRange["0", "9"]}; 

names[data] = 
  names[in] // 
    AssociationMap[
     StringSplit[#, 
        c : humpCharacters ~~ 
          rest : Except[Append[humpCharacters, "$"]] .. :> 
         c <> rest] & /* Select[# != "" &]] // Dataset;

names[data][Catenate /* Tally /* SortBy[Last] /* Reverse][
  Map[Style[First[#], FontSize ->  (Last[#]/3 + 8)]^
    Style[Last[#], Red] &]] // Normal

enter image description here

$\endgroup$
5
  • $\begingroup$ Would you provide the code that produced this cloud tally? $\endgroup$
    – murray
    Commented Nov 24, 2014 at 18:19
  • $\begingroup$ @murray, sure, will add it. $\endgroup$ Commented Nov 25, 2014 at 23:48
  • $\begingroup$ @murray, appended word cloud method. $\endgroup$ Commented Dec 2, 2014 at 22:23
  • 1
    $\begingroup$ Have a look at V10.2's WolframLanguageData. $\endgroup$ Commented Jul 21, 2015 at 18:57
  • $\begingroup$ @SjoerdC.deVries, this is good, thanks. Will need to test, eg there's many families of polynomials and then there's HermiteH which hopefully is a related entity despite no keywords in common. $\endgroup$ Commented Jul 22, 2015 at 20:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.