propeller.problems.PSB2.spin-words

===========  PROBLEM DESCRIPTION  ==============================
SPIN WORDS from PSB2
Given a string of one or more words
(separated by spaces), reverse all of the words that are five
or more letters long and return the resulting string.

Source: https://arxiv.org/pdf/2106.06086.pdf
================================================================

-main

(-main & args)
Runs propel-gp, giving it a map of arguments.

error-function

(error-function argmap data individual)
Finds the behaviors and errors of an individual: Error is 0 if the value and
the program's selected behavior match, or 1 if they differ, or 1000000 if no
behavior is produced. The behavior is here defined as the final top item on
the STRING stack.

instructions

stack-specific instructions, input instructions, close, and constants

random-char

(random-char)
Generates random character

random-input

(random-input len)
Makes a Spin Words input of length len, which is just a string of words, where the
words that are length 5 or greater are reversed

train-and-test-data

word-generator

(word-generator)