[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban-beginners] Re: palindromes?



Adam D. Lopresto wrote:
On Mon, 4 Dec 2006, Gene Mosley wrote:


Does anyone know if any Lojban palindromes exist?

Are they even possible?


They're definitely possible.  Someone on irc mentioned that {.ua vibjbi vau}
dates from really early on.  I'm attaching a bunch more, along with the perl
script that found them.  I'm sure others can create more sophisticated ones,
but this should do for an existence proof.

perl -nle '($a = $_) =~ s/.$//; print ".i $_ ".(reverse $a)."i" if $A{reverse $a}; $A{$a}++' gismu
.i cutci ctuci
.i dirba bridi
.i dirce cridi
.i gradu dargi
.i jdice cidji

This code is substituting the last letter of the second gismu with "i", which often produces a non-word.

phma