propeller.problems.PSB2.camel-case
CAMEL CASE from PSB2
Take a string in kebab-case and convert all of the words to camelCase. Each group of words to convert is delimited by “-”, and each grouping is separated by a space. For example: “camel-case example-test-string” → “camelCase exampleTestString”
-main
(-main & args)
Runs the top-level genetic programming function, giving it a map of arguments with defaults that can be overridden from the command line or through a passed map.
cleanup-length
(cleanup-length string len)
Remove spaces and dashes from end of string
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)
Return visible character ERC
random-input
(random-input len)
Returns random string ERCs
train-and-test-data
Data taken from https://zenodo.org/record/5084812
word-generator
(word-generator)
Word generator for string ERC