Crate hacker_text

Source
Expand description

A really dumb library that generates bogus lines of “hacker text”.

Example:

use hacker_text::*;
 
let foo = make_line();
// since the thing is randomized, it is impossible to know what foo will be.

Some generated examples are:

  • detonating python
  • sadly lying to golden trans rights
  • happily detonating all of gnu
  • destroying 20 million copies of the game tux kart racing
  • smoking tomato sauce
  • happily compiling windows

(probably don’t use the make_line() function, the adverbs and adjectives are really weird)

Functions§

get_adjective
Gets an adjective from the list of adjectives used in the make_line() functions.
get_adverb
Gets an adverb from the list of adverbs used in the make_line() functions.
get_noun
Gets a noun from the list of nouns used in the make_line() functions.
get_verb
Gets a verb from the list of verbs used in the make_line() functions.
make_adjective_line
Returns a String with verbs, nouns, and adjectives.
make_adverb_line
Returns a String with adverbs, verbs, and nouns.
make_everything_line
Returns a String with adverbs, verbs, nouns, and adjectives.
make_line
Randomly picks one of the other make_line functions and returns a String from them.
make_verb_line
Returns a String with verbs and nouns.