Making a Dendrogram

Clustering of data can be computed in a hierarchy of levels and displayed using built-in dendrogram plotting.In this example,the words in "The rain in Spain falls mainly on the plain" were analyzed.

Needs["Statistics`ClusterAnalysis`"]

\(\(DendrogramPlot[{"The", "rain", "in", "Spain", "falls", "mainly", "on", "the", "plain"}, 
        LeafLabels -> \((StyleForm[#, 
                FontWeight -> "Bold"] &)\), PlotStyle -> Green, 
        ImageSize -> 400];\)\)