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$
  • $\begingroup$ Would you provide the code that produced this cloud tally? $\endgroup$ – murray Nov 24 '14 at 18:19
  • $\begingroup$ @murray, sure, will add it. $\endgroup$ – alancalvitti Nov 25 '14 at 23:48
  • $\begingroup$ @murray, appended word cloud method. $\endgroup$ – alancalvitti Dec 2 '14 at 22:23
  • 1
    $\begingroup$ Have a look at V10.2's WolframLanguageData. $\endgroup$ – Sjoerd C. de Vries Jul 21 '15 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$ – alancalvitti Jul 22 '15 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.