WordSelectionFunction

WordSelectionFunction

is an option for WordCloud and other functions that specifies which words to use.

Details

  • The following settings can be given for WordSelectionFunction:
  • Automatican automatic selection
    True&no filtering
    fan arbitrary selection function f
  • The function f takes a word as the first argument and that word's weight as its second argument:
  • #Word or #1the word
    #Weight or #2the word's weight

Examples

open allclose all

Basic Examples  (1)

Select strings based on their length:

Applications  (2)

Make a word cloud with the Wolfram Language symbols ranked by their documentation usage:

Use WordSelectionFunction to pick only symbols with the NumericFunction attribute:

Select the countries based on their name length:

Include the element weight in the selection:

Introduced in 2017
 (11.2)