Levidrome News

Levidrome Poetry

Posted on
Levidrome Poetry

A fellow levidromist pointed me in this direction for this article - poetry. Not just poetry, but levidromic poems.

Seth W Thatcher created a couple of poems. They can be seen at this twitter location, but I will copy them here for easier viewing:


Poem 1 (untitled) - Published - November 25, 2017

Regal lager
and DNA
pool loop.
Devil lived
on no
Sleep. Peels
stink. Knits
net. Ten
edit tide.
God dog
won now.



Poem 2 (untitled) - Published April 9, 2021

Ew. We
live evil
eh? he
slap pals,
lag gal,
yap pay.

Gut tug.

Ah ha!
God, dog.
Evil live
on? No.
Sit. ‘Tis
He.
Eh?



Really great job Thatcher!

Keep the levidromes alive! If there are other poets out there, especially levidromic poets, please feel free to contact us and we can publish additional poems.



Levidromes - Our Secret Sauce

Posted on
Levidrome List Secret Sauce

When we first started this website, we wanted to publish all known levidromes. We started with English, then expanded to other languages. We have achieved that goal for all the dictionary lists we have found.

We probably took the fun out of trying to find new levidromes. All you have to do is visit our list pages and there they are. But how did we find them?

A bit of a hint. When we created our FAQ page, we actually when through the process of how our levidrome finding script worked. But today, we are going to reveal the actual script. Our secret sauce in our finding levidromes recipe.

The script was developed in PHP, a programming language which is used highly in web environments. Wordpress, one of the the most popular Web development tools used today, is written in PHP.

Although highly used on the web, PHP is still a programming language which can take data as input and spit out results as output. I am very familiar with the language and it has a bunch of built in functions which handle arrays (or lists) beautifully.

To quote what we said on our FAQ page:

We extracted the words programmatically. We developed an app or script (in PHP) which does the necessary steps to create the lists. Essentially, we take the list of words, convert to UTF-8 (to standardize so non-english words will show properly on our website), change uppercase to lowercase, remove duplicates, then reverse each word and add it to the existing list. Any duplicates at that point will either be levidromes or palindromes. We remove the palindromes and are left with levidromes.

That was basically the procedure or method to our goal. The only pre-work which had to be done was to ensure the list of words was in UTF-8 format (which is a format which can display foreign characters). Our DICT words lists are already in this format.

Here is the script (using tagalog as an example):

<?php
ini_set("memory_limit","-1");
$langfile="tagalog";
function array_not_unique( $a = array() )
{
 return array_diff_key( $a , array_unique( $a ) );
}
function mb_strrev($string, $encoding = null) {
 if ($encoding === null) {
  $encoding = mb_detect_encoding($string);
}

$length = mb_strlen($string, $encoding);
$reversed = '';
while ($length-- > 0) {
  $reversed .= mb_substr($string, $length, 1, $encoding);
}

return $reversed;
}
$f1=fopen($langfile."-levidrome.txt",'a');
$f2=fopen($langfile."-palindrome.txt",'a');
$words=file($langfile,FILE_IGNORE_NEW_LINES);
$rev=array();
for($i=0;$i<=sizeof($words)-1;$i++){
  $words[$i]=mb_strtolower($words[$i],"UTF-8");
  $rev[$i]=mb_strrev($words[$i],"UTF-8");
}
$words=array_unique($words);
$rev=array_unique($rev);
$all=array_merge($words,$rev);
sort($all);
$uniq=array_not_unique($all);
foreach($uniq as $word){
  if(mb_strrev($word,"UTF-8")<>$word){
    fwrite($f1,$word."\n");
  }else{
    fwrite($f2,$word."\n");
}
}
fclose($f1);
fclose($f2);
?>

So there you have it. Once the script is run, you will have 2 files, one with levidrome words and the other with palindrome words. The secret sauce or coding which we used to created our lists.

Aside note: Most instances of PHP by default do not have the MBSTRING functions enabled. You may need to add these features to your PHP install by either downloading the extensions, or enabled them in the php.ini file by uncommenting the extension=php_mbstring.dll line.

I apologize in advance. This was probably the most geeky post I have ever written for this website. However, that is me...geeky...but also a levidromist geek.



Happy Levidrome Day 2021

Posted on
Levidrome Date

Today is February 12, 2021. If we have a date format of dd/mm/yyyy, which is quite common in the banking industry as well as many countries of the world, today would be written as 12/02/2021

Remove the slashes and we get 12022021 - a palindrome.

However with a space inserted between the mmdd combination and the year we can also get 1202 2021 - which is a levidromic pair.

The dictionaries include numbers as part of the definition of palindrome.

So the combinations 12022021 and 1202 2021 are definitely palindromic.

Since an official definition does not yet exist for levidromes, I would deduce that numbers could fall into its definition as well. After all, the number 1202 is a different valid number compared to 2021.

To be safe, we have included numbers into our definition of a levidrome which you can see on our main page. It only makes sense. Dictionaries may argue but we will let them sort that out and we will adjust our definition at that time.


How frequent are these levidrome days?

Previous to this millenium, the last levidrome dates were in the year 1380 (Aug 31, 1380).

When the year 2001 started, they started to show up again, usually 4 per decade.

This year, there will be 2 levidrome days - February 12th and December 2nd.

Next year in 2022, there will only be one. February 22nd (2202 2022)

We crunched the numbers. Between now and the year 2190, there will be levidromic dates in the early part of each decade, ie. years ending in either 0, 1 or 2.

So basically 3 to 4 levidrome dates per decade during this time frame.

After the year 2220 there will be 1 to 2 occurrences per decade.

However, after the year 2290 there will not be another occurrence for centuries.

Levidromic days will not be showing up again until the year 3001, over 700 years later. So enjoy them when they are here. They are relatively rare and will become even more rare in the future.

Happy Levidrome Day! Oh, and also, Happy Palindrome Day!



Some Additional Languages Added

Posted on
Levidrome List Logo

Our first post of the new year. Happy New Year to all.

We have added a really old language as well as a really new language.

First the old language - Arabic

It has been around for a really long time. I found a pretty decent list of words online, so I have added the list to our dictionary section as well as finding the arabic levidromes and the palindromes.

Now for the next language - Esperanto. This is a somewhat new and rare language. It has only been around since 1887 and its purpose is to be a constructed language, or a international auxiliary language. Here are the Esperanto levidromes and the palindromes.

With these two languages added, this makes our dictionaries total 18,232,479 words, with 32,786 levidromes and 3,909 palindromes.

As always, if there is a language you would like to see added, let us know. It is easy to create the lists...It is just more difficult getting decent dictionary file of words.