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:

Wolfram Research (2017), WordSelectionFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/WordSelectionFunction.html.

Text

Wolfram Research (2017), WordSelectionFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/WordSelectionFunction.html.

CMS

Wolfram Language. 2017. "WordSelectionFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WordSelectionFunction.html.

APA

Wolfram Language. (2017). WordSelectionFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WordSelectionFunction.html

BibTeX

@misc{reference.wolfram_2024_wordselectionfunction, author="Wolfram Research", title="{WordSelectionFunction}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/WordSelectionFunction.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_wordselectionfunction, organization={Wolfram Research}, title={WordSelectionFunction}, year={2017}, url={https://reference.wolfram.com/language/ref/WordSelectionFunction.html}, note=[Accessed: 21-November-2024 ]}