WORDCLOUD_CLI(1)

πŸ’– WORDCLOUD_CLI β€” bestie edition πŸ’–

okay so. <rainbow>wordcloud_cli</rainbow> β€” it's a little word cloud generator in Python. that's it, that's the whole vibe. it makes pretty clouds out of words. and honestly? iconic. ✨


🌸 NAME 🌸

wordcloud_cli β€” a little word cloud generator in Python 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

here's how you call it, bestie. look at the shape of it first, then we'll go one by one:

wordcloud_cli [-h] [--text file] [--regexp regexp] [--stopwords file]
              [--imagefile file] [--fontfile path] [--mask file]
              [--colormask file] [--contour_width width] [--contour_color color]
              [--relative_scaling rs] [--margin width] [--width width]
              [--height height] [--color color] [--background color]
              [--no_collocations] [--include_numbers]
              [--min_word_length min_word_length] [--prefer_horizontal ratio]
              [--scale scale] [--colormap map] [--mode mode] [--max_words N]
              [--min_font_size size] [--max_font_size size] [--font_step step]
              [--random_state seed] [--no_normalize_plurals] [--repeat]
              [--version]

it's a simple command line interface for the wordcloud module. no cap. that's the whole thing. πŸ’…


✨ optional arguments ✨

one bullet per flag, no skips, no gatekeeping. we're listing every single one:

  • -h, --help β€” shows this help message and then dips. bye! πŸ‘‹
  • --text file β€” name the file of words you wanna build the word cloud out of (default: stdin, so if you don't say anything it just reads what you pipe in 🫢)
  • --regexp regexp β€” overrides the regular expression that decides what counts as a word. you're the boss of "what is a word" now πŸ‘‘
  • --stopwords file β€” name a file of stopwords (one word per line, fr) and those get removed from the given text after parsing. get that "the" and "and" OUT πŸ’€
  • --imagefile file β€” the file your finished PNG image gets written to (default: stdout) πŸŽ€
  • --fontfile path β€” path to the font file you wanna use (default: DroidSansMono) β€” pick your font, make it cute πŸ¦‹
  • --mask file β€” the mask to use for the image form. it shapes your cloud, main character energy 🌈
  • --colormask file β€” the color mask to use for image coloring 🎨
  • --contour_width width β€” if this is greater than 0, it draws the mask contour (default: 0) ✏️
  • --contour_color color β€” uses the given color as the mask contour color β€” it accepts any value from PIL.ImageColor.getcolor πŸ’œ
  • --relative_scaling rs β€” scaling of words by frequency, in the range 0 - 1 πŸ“ˆ
  • --margin width β€” the spacing to leave around words. personal space matters 🫧
  • --width width β€” defines the output image width πŸ“
  • --height height β€” defines the output image height πŸ“
  • --color color β€” uses the given color as the coloring for the image β€” accepts any value from PIL.ImageColor.getcolor 🌸
  • --background color β€” uses the given color as the background color for the image β€” accepts any value from PIL.ImageColor.getcolor πŸ–ΌοΈ
  • --no_collocations β€” does NOT add collocations (bigrams) to the word cloud (default behaviour: add both unigrams and bigrams) 🚫
  • --include_numbers β€” include numbers in the wordcloud? yes? no? you decide πŸ”’
  • --min_word_length min_word_length β€” only include words with more than X letters. short words, you're out πŸ™ˆ
  • --prefer_horizontal ratio β€” the ratio of times to try horizontal fitting as opposed to vertical ↔️
  • --scale scale β€” scaling between computation and drawing πŸ”
  • --colormap map β€” a matplotlib colormap name 🌈
  • --mode mode β€” use RGB or RGBA for a transparent background ✨
  • --max_words N β€” maximum number of words πŸ”
  • --min_font_size size β€” the smallest font size to use 🐜
  • --max_font_size size β€” the maximum font size for the largest word 🐘
  • --font_step step β€” the step size for the font πŸ‘£
  • --random_state seed β€” random seed 🎲
  • --no_normalize_plurals β€” whether to remove trailing 's' from words βœ‚οΈ
  • --repeat β€” whether to repeat words and phrases πŸ”
  • --version β€” shows the program's version number and then exits. peep the version, slay πŸ’…
⚠️ heads up bestie: the option values above like 0 - 1 for --relative_scaling rs, 0 for --contour_width width, and the defaults stdin, stdout, DroidSansMono are exactly as written. don't get creative with them, okay? copy the vibes, not new numbers 🫢

πŸ‘‘ AUTHOR πŸ‘‘

this manpage was written by Nilesh Patra for the Debian distribution, and it can be used for any other usage of the program. king behaviour, fr fr 🫑


and that's the whole page, bestie!! you ate this. go make a word cloud. the version is wordcloud_cli 1.8.1 and this page is dated November 2020 β€” periodt. πŸ’…βœ¨