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

[lojban-beginners] Re: palindromes?



On Mon, 4 Dec 2006, Pierre Abbat wrote:

> 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.

You're right, it's buggy.  At least some of them are valid, which was enough
for me.  But my bad.
-- 
Adam Lopresto
http://cec.wustl.edu/~adam/

Slight disorientation after prolonged system uptime is normal for new Linux
users. Please do not adjust your browser.