~gloatingfiddle/xkcd-2637-encoding

Implementing an encoder/decoder for the encoding in XKCD 2637

#XKCD Roman Numeral Encoding

This is a little toy encoder that implements the encoding demonstrated in the alt-text of XKCD 2637.

I make a few opinionated changes to have the encoding be reversible, which unfortunately ruins the joke in the alt-text. I am considering making that a command-line option, however.

It could also be fun to have the decoder spit out every possible decoding of the text input.