USING: sequences math kernel ascii splitting io prettyprint ;
IN: splurthian
: normalize ( str -- str str ) >lower " ," split harvest
[ first ] keep second ;
: symbol-loc ( str str -- seq seq ) 2dup first swap indices
-rot second swap indices ;
: valid-order ( seq seq -- ? ) [ [ empty? ] either? ] 2keep
rot [ 2drop f ] [ [ infimum ] dip supremum < ] if ;
lines [ normalize symbol-loc valid-order . ] each
VVNJTkc6IHNlcXVlbmNlcyBtYXRoIGtlcm5lbCBhc2NpaSBzcGxpdHRpbmcgaW8gcHJldHR5cHJpbnQgOwpJTjogc3BsdXJ0aGlhbgoKOiBub3JtYWxpemUgKCBzdHIgLS0gc3RyIHN0ciApID5sb3dlciAiICwiIHNwbGl0IGhhcnZlc3QKICAgIFsgZmlyc3QgXSBrZWVwIHNlY29uZCA7Cgo6IHN5bWJvbC1sb2MgKCBzdHIgc3RyIC0tIHNlcSBzZXEgKSAyZHVwIGZpcnN0IHN3YXAgaW5kaWNlcwogICAgLXJvdCBzZWNvbmQgc3dhcCBpbmRpY2VzIDsKCjogdmFsaWQtb3JkZXIgKCBzZXEgc2VxIC0tID8gKSBbIFsgZW1wdHk/IF0gZWl0aGVyPyBdIDJrZWVwCiAgICByb3QgWyAyZHJvcCBmIF0gWyBbIGluZmltdW0gXSBkaXAgc3VwcmVtdW0gPCBdIGlmIDsKICAgIApsaW5lcyBbIG5vcm1hbGl6ZSBzeW1ib2wtbG9jIHZhbGlkLW9yZGVyIC4gXSBlYWNoICA=
U3BlbmdsZXJpdW0sIEVlClplZGRlbW9yaXVtLCBacgpWZW5rbWluZSwgS24KU3RhbnR6b24sIFp0Ck1lbGludHp1bSwgTm4KVHVsbGl1bSwgVHk=
Spenglerium, Ee
Zeddemorium, Zr
Venkmine, Kn
Stantzon, Zt
Melintzum, Nn
Tullium, Ty