Robust(?) string manipulation language
A programming language specifically designed such that ASTs generated by markov chain are likely to produce programs with meaningful effect
—mcc (@mcclure111) July 11, 2015
Xenoglossia is a simple string manipulation language, akin to sed. It was created with the goal of producing surprising, fun-to-read programs which can be generated in novel manners by a computer.
Xenoglossia will install an executable named xg. To run a program, call xg --input STRING "xenoglossia program"; for example:
xg --input "This is the input string" "sub 'input' 'output'"
You can also pipe input into stdin:
echo "This is the input string" | xg "sub 'input' 'output'"
Replace two words in a sentence:
gsub "favorite" "favourite" gsub "color" "colour"
Rearrange the words in a sentence, then capitalize the new sentence:
burst " " shuffle capitalize